|
@@ -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);
|