wwl 3 жил өмнө
parent
commit
87bec3e716

+ 3 - 3
twzd-admin/src/main/java/com/miaxis/system/controller/test/TestController.java

@@ -100,7 +100,7 @@ public class TestController {
             if (SignUtil.checkSignature(signature, timestamp, nonce)) {
 
                 //消息处理
-                WexHandeler();
+                WexHandeler(request);
 
                 return echostr;
             }
@@ -112,7 +112,7 @@ public class TestController {
 
 
     //微信功能处理
-    public String WexHandeler() throws Exception {
+    public String WexHandeler(HttpServletRequest request) throws Exception {
         try {
             cn.hutool.json.JSONObject info = XML.toJSONObject(IOUtils.toString(request.getInputStream()));
             log.info("info:" + info);
@@ -147,7 +147,7 @@ public class TestController {
                             log.info("ticket:" + ticket);
                             //解析完执行操作
 
-                        } else if ("unsubscribe".equals(Event)) {
+                        } else if ("unsubscribe".equals(Event)) { //取消订阅事件
 
                         }
                     } catch (Exception e) {