소스 검색

1.微信中控修改,第一次扫码关注时正常返回信息。
正常扫码是:"EventKey":"7000,2142006";
当未关注时,扫码是"EventKey":"qrscene_7000,2142006"

tomatozq 5 년 전
부모
커밋
9c9ae936e2
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      weixin-middleware/src/main/java/com/jpsoft/weixin/controller/WeixinController.java

+ 4 - 2
weixin-middleware/src/main/java/com/jpsoft/weixin/controller/WeixinController.java

@@ -165,8 +165,10 @@ public class WeixinController {
             String event = requestJson.getStr("Event");
             String eventKey = requestJson.getStr("EventKey");
 
-            //正常扫码是:"EventKey":"7000,2142006";
-            //当未关注时,扫码是"EventKey":"qrscene_7000,2142006"
+            /*
+            正常扫码是:"EventKey":"7000,2142006";
+            当未关注时,扫码是"EventKey":"qrscene_7000,2142006"
+            */
             if(StringUtils.isNotEmpty(eventKey) && eventKey.indexOf("_")!=-1){
                 String[] arr = eventKey.split("_");