|
|
@@ -13,27 +13,27 @@ import org.springframework.context.annotation.Configuration;
|
|
|
* @description 微信
|
|
|
* @date 2023-07-22 23:09
|
|
|
*/
|
|
|
-@Data
|
|
|
-@Configuration
|
|
|
-@ConfigurationProperties(prefix = "wechat.mp")
|
|
|
-public class WxMpConfig {
|
|
|
- private String appid;
|
|
|
- private String secret;
|
|
|
- private String token;
|
|
|
- private String aeskey;
|
|
|
-
|
|
|
-
|
|
|
- @Bean
|
|
|
- public WxMpService wxMpService() {
|
|
|
- WxMpService service = new WxMpServiceImpl();
|
|
|
- WxMpDefaultConfigImpl configStorage = new WxMpDefaultConfigImpl();
|
|
|
-
|
|
|
- configStorage.setAppId(appid);
|
|
|
- configStorage.setSecret(secret);
|
|
|
- configStorage.setToken(token);
|
|
|
- configStorage.setAesKey("aeskey");
|
|
|
- service.addConfigStorage("MP", configStorage);
|
|
|
- return service;
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
+//@Data
|
|
|
+//@Configuration
|
|
|
+//@ConfigurationProperties(prefix = "wechat.mp")
|
|
|
+//public class WxMpConfig {
|
|
|
+// private String appid;
|
|
|
+// private String secret;
|
|
|
+// private String token;
|
|
|
+// private String aeskey;
|
|
|
+//
|
|
|
+//
|
|
|
+// @Bean
|
|
|
+// public WxMpService wxMpService() {
|
|
|
+// WxMpService service = new WxMpServiceImpl();
|
|
|
+// WxMpDefaultConfigImpl configStorage = new WxMpDefaultConfigImpl();
|
|
|
+//
|
|
|
+// configStorage.setAppId(appid);
|
|
|
+// configStorage.setSecret(secret);
|
|
|
+// configStorage.setToken(token);
|
|
|
+// configStorage.setAesKey("aeskey");
|
|
|
+// service.addConfigStorage("MP", configStorage);
|
|
|
+// return service;
|
|
|
+// }
|
|
|
+//
|
|
|
+//}
|