Просмотр исходного кода

微信公众号服务器验证

skyline 1 год назад
Родитель
Сommit
4a1aa9faa4
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      miniapp/src/main/java/com/kym/miniapp/controller/WeixinMPController.java

+ 2 - 6
miniapp/src/main/java/com/kym/miniapp/controller/WeixinMPController.java

@@ -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;