소스 검색

新增微信接口校验

hsj 1 개월 전
부모
커밋
82dccbb371
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      src/main/java/top/husj/husj_wx/properties/WeChatProperties.java
  2. 2 1
      src/main/resources/application.yml

+ 2 - 0
src/main/java/top/husj/husj_wx/properties/WeChatProperties.java

@@ -13,4 +13,6 @@ public class WeChatProperties {
     private String appid;
     @Value("${wechat.appsecret}")
     private String appsecret;
+    @Value("${wechat.encodingaeskey}")
+    private String encodingAESKey;
 }

+ 2 - 1
src/main/resources/application.yml

@@ -7,6 +7,7 @@ server:
   port: 28080
 
 wechat:
-  token: 12345
+  token: qwertyui
   appid: wxb9510ec5ad7b4a5f
   appsecret: 771278278f2cad8a32615c388a26e215
+  encodingAESKey: TAuWfJHftr4CmGtLe8aHwkA9JVaEMCA3VoQi9VhLVpD