|
@@ -73,7 +73,7 @@ public class TestController {
|
|
|
public Response generateTicket() throws Exception{
|
|
|
String xcxMessageToken = wxGzhService.getGzhToken();
|
|
|
WxTicket wxTicket = new WxTicket();
|
|
|
- wxTicket.setExpire_seconds(3000);
|
|
|
+ wxTicket.setExpire_seconds(86400);//一天
|
|
|
wxTicket.setAction_name("QR_SCENE");
|
|
|
JSONObject jsonObject1 = new JSONObject();
|
|
|
JSONObject jsonObject2 = new JSONObject();
|
|
@@ -117,9 +117,8 @@ public class TestController {
|
|
|
return SignUtil.checkSignature(signature, timestamp, nonce) == true ? echostr : null;
|
|
|
}else{
|
|
|
log.info("-----------推送消息处理---------");
|
|
|
- handlePublicMsg(request);
|
|
|
+ return handlePublicMsg(request);
|
|
|
}
|
|
|
- log.info("-----------方法未执行---------");
|
|
|
} catch (Exception e) {
|
|
|
log.error("验证公众号token失败", e);
|
|
|
}
|