|
@@ -1,5 +1,6 @@
|
|
package com.jpsoft.smart.cphandler;
|
|
package com.jpsoft.smart.cphandler;
|
|
|
|
|
|
|
|
+import cn.hutool.json.JSONObject;
|
|
import com.jpsoft.smart.cpbuilder.TextBuilder;
|
|
import com.jpsoft.smart.cpbuilder.TextBuilder;
|
|
import me.chanjar.weixin.common.api.WxConsts;
|
|
import me.chanjar.weixin.common.api.WxConsts;
|
|
import me.chanjar.weixin.common.session.WxSessionManager;
|
|
import me.chanjar.weixin.common.session.WxSessionManager;
|
|
@@ -10,6 +11,7 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @author Binary Wang(https://github.com/binarywang)
|
|
* @author Binary Wang(https://github.com/binarywang)
|
|
*/
|
|
*/
|
|
@@ -22,6 +24,10 @@ public class MsgHandler extends AbstractHandler {
|
|
final String msgType = wxMessage.getMsgType();
|
|
final String msgType = wxMessage.getMsgType();
|
|
if (msgType == null) {
|
|
if (msgType == null) {
|
|
// 如果msgType没有,就自己根据具体报文内容做处理
|
|
// 如果msgType没有,就自己根据具体报文内容做处理
|
|
|
|
+ // return new TextBuilder().build("success", wxMessage, cpService);
|
|
|
|
+ logger.warn("安装测试"+wxMessage);
|
|
|
|
+ Map map = wxMessage.getAllFieldsMap();
|
|
|
|
+ String authCode = (String) map.get("AuthCode");
|
|
return new TextBuilder().build("success", wxMessage, cpService);
|
|
return new TextBuilder().build("success", wxMessage, cpService);
|
|
}
|
|
}
|
|
|
|
|