瀏覽代碼

feat : 小游戏消息事件接收接口

bilingfeng 2 年之前
父節點
當前提交
dd0a531608
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      game-module/game-sdk/src/main/java/com/zanxiang/sdk/controller/AppletController.java

+ 1 - 1
game-module/game-sdk/src/main/java/com/zanxiang/sdk/controller/AppletController.java

@@ -39,7 +39,7 @@ public class AppletController {
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameAppletVO.class)})
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameAppletVO.class)})
     public String appletMsg(@PathVariable("appId") String appId, @RequestParam String signature,
     public String appletMsg(@PathVariable("appId") String appId, @RequestParam String signature,
                             @RequestParam String timestamp, @RequestParam String nonce,
                             @RequestParam String timestamp, @RequestParam String nonce,
-                            @RequestParam String echostr, @RequestBody String postData) throws Exception {
+                            @RequestParam(required = false) String echostr, @RequestBody String postData) throws Exception {
         return gameAppletService.appletMsg(appId, signature, timestamp, nonce, echostr, postData);
         return gameAppletService.appletMsg(appId, signature, timestamp, nonce, echostr, postData);
     }
     }