Przeglądaj źródła

feat : 调试bug修改

bilingfeng 2 lat temu
rodzic
commit
7f213509c3

+ 4 - 0
game-module/game-sdk/src/main/java/com/zanxiang/sdk/service/Impl/GameAppletServiceImpl.java

@@ -85,6 +85,10 @@ public class GameAppletServiceImpl extends ServiceImpl<GameAppletMapper, GameApp
             return "success";
         }
         AppletMsgDTO appletMsgDTO = JsonUtil.toObj(postData, AppletMsgDTO.class);
+        //消息内容判断, 值回复文本消息为2的内容
+        if (!Objects.equals(appletMsgDTO.getMsgType(), "text") && !Objects.equals(appletMsgDTO.getContent(), "2")) {
+            return "success";
+        }
         //查询用户信息
         User user = userService.getOne(new LambdaQueryWrapper<User>()
                 .eq(User::getGameId, gameApplet.getGameId())