2 次代码提交 39d5a9915c ... 8034468a3c

作者 SHA1 备注 提交日期
  TanJingyu 8034468a3c 日志 2 年之前
  TanJingyu 415e74b2f4 日志 2 年之前
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/main/java/com/cybertogether/wx/notice/web/WxPushReceptionController.java

+ 5 - 2
src/main/java/com/cybertogether/wx/notice/web/WxPushReceptionController.java

@@ -51,8 +51,11 @@ public class WxPushReceptionController {
      * 开发配置-开发资料-消息与事件接收配置
      */
     @PostMapping("/msgEvent/{appId}")
-    public String receptionMsgEvent(@RequestBody String requestBody, @PathVariable String appId) {
-        LOGGER.info("微信通知转发服务-收到微信消息与事件通知-{}", requestBody);
+    public String receptionMsgEvent(@RequestBody String requestBody, @PathVariable String appId,
+                                    @RequestParam(name = "timestamp", required = false) String timestamp,
+                                    @RequestParam(name = "nonce", required = false) String nonce,
+                                    @RequestParam(name = "msg_signature", required = false) String msgSignature) {
+        LOGGER.info("微信通知转发服务-收到微信消息与事件通知-{}-{}-{}-{}-{}", appId, timestamp, nonce, msgSignature, requestBody);
         return "success";
     }
 }