Переглянути джерело

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

bilingfeng 2 роки тому
батько
коміт
dd0a531608

+ 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)})
     public String appletMsg(@PathVariable("appId") String appId, @RequestParam String signature,
                             @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);
     }