Prechádzať zdrojové kódy

Merge branch 'dev-xym-update-token' of Server/growth-manager into master

xueyiming 2 mesiacov pred
rodič
commit
e7716fe710

+ 5 - 5
api-module/src/main/java/com/tzld/piaoquan/api/controller/TencentWeComController.java

@@ -144,9 +144,9 @@ public class TencentWeComController {
             // 如果是刷新,需返回原echostr
             String echoStr = request.getParameter("echostr");
             // 微信加密签名
-            WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(WeComServerConstant.TOKEN,
-                    WeComServerConstant.ENCODING_AES_KEY,
-                    WeComServerConstant.CORP_ID);
+            WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(WeComServerConstant.YLQ_TOKEN,
+                    WeComServerConstant.YLQ_ENCODING_AES_KEY,
+                    WeComServerConstant.YLQ_CORP_ID);
 
             String sEchoStr = ""; //需要返回的明文
             PrintWriter out;
@@ -176,9 +176,9 @@ public class TencentWeComController {
             // 随机数
             String nonce = request.getParameter("nonce");
 
-            String id = WeComServerConstant.CORP_ID;
+            String id = WeComServerConstant.YLQ_CORP_ID;
 
-            WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(WeComServerConstant.TOKEN, WeComServerConstant.ENCODING_AES_KEY, id);
+            WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(WeComServerConstant.YLQ_TOKEN, WeComServerConstant.YLQ_ENCODING_AES_KEY, id);
 
             StringBuilder postData = new StringBuilder();   // 密文,对应POST请求的数据
             //1.获取加密的请求消息:使用输入流获得加密请求消息postData