Procházet zdrojové kódy

feat : 生产测试02

bilingfeng před 10 měsíci
rodič
revize
e8dc97d794

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/ManageApplication.java

@@ -23,7 +23,7 @@ public class ManageApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(ManageApplication.class, args);
-        System.out.println("赞象Manage服务启动成功 < (生产测试01・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 < (生产测试02・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

+ 9 - 0
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/service/impl/PushMsgStrategyServiceImpl.java

@@ -68,16 +68,25 @@ public class PushMsgStrategyServiceImpl extends ServiceImpl<PushMsgStrategyMappe
             log.error("消息推送玩家信息为空, pushMsgStrategyId : {}, param : {}", pushMsgStrategy.getId(), JsonUtil.toString(param));
             return;
         }
+
+        log.error("查询到的用户信息, userDTO : {}", JsonUtil.toString(userDTO));
+
         //判断是否满足策略执行条件
         if (!this.strategyCheck(pushMsgStrategy, param, userDTO)) {
             log.error("消息推送不满足策略条件, pushMsgStrategyId : {}, param : {}", pushMsgStrategy.getId(), JsonUtil.toString(param));
             return;
         }
+
+        log.error("策略条件判断完成, 判断通过!!!!");
+
         //查询策略执行角色
         GameUserRole gameUserRole = gameUserRoleService.getOne(new LambdaQueryWrapper<GameUserRole>()
                 .eq(GameUserRole::getGameId, param.getGameId())
                 .eq(GameUserRole::getUserId, param.getUserId())
                 .eq(GameUserRole::getRoleId, param.getRoleId()));
+
+        log.error("查询执行策略的角色, gameUserRole : {}", JsonUtil.toString(gameUserRole));
+
         //查询策略执行文本
         String strategyText = pushMsgTextStrategy.getStrategyText(gameUserRole);
         log.error("消息推送查询到文本, param : {}, strategyText : {}", JsonUtil.toString(param), strategyText);