|
@@ -34,16 +34,12 @@ public class WeixinMPController {
|
|
|
* @param request
|
|
* @param request
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
- @PostMapping(value = "notify", produces = MediaType.TEXT_XML_VALUE)
|
|
|
|
|
|
|
+// @PostMapping(value = "notify", produces = MediaType.TEXT_XML_VALUE)
|
|
|
@ApiLog(value = "微信公众号服务器推送消息", ignoreParams = true)
|
|
@ApiLog(value = "微信公众号服务器推送消息", ignoreParams = true)
|
|
|
public void handleMessage(HttpServletRequest request, HttpServletResponse response) {
|
|
public void handleMessage(HttpServletRequest request, HttpServletResponse response) {
|
|
|
weixinMPService.handleWxMPNotify(request, response);
|
|
weixinMPService.handleWxMPNotify(request, response);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// @Resource
|
|
|
|
|
-// WxMpService wxMpService;
|
|
|
|
|
-// private Logger logger = LoggerFactory.getLogger(WeixinMPController.class);
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
|
|
|
|
@@ -53,7 +49,7 @@ public class WeixinMPController {
|
|
|
/**
|
|
/**
|
|
|
* 微信服务器token验证
|
|
* 微信服务器token验证
|
|
|
*/
|
|
*/
|
|
|
- @GetMapping(value = "check")
|
|
|
|
|
|
|
+ @GetMapping(value = "notify")
|
|
|
@SysLog("微信服务器token验证")
|
|
@SysLog("微信服务器token验证")
|
|
|
public void checkSign(HttpServletResponse response, String signature, String timestamp, String nonce, String echostr) {
|
|
public void checkSign(HttpServletResponse response, String signature, String timestamp, String nonce, String echostr) {
|
|
|
String responseVal = echostr;
|
|
String responseVal = echostr;
|