|
@@ -95,6 +95,12 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
log.error("重复请求触发线程锁, 直接返回false, lockKey : {}", lockKey);
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
+ Game game = gameService.getById(userData.getGameId());
|
|
|
+ //判断游戏状态
|
|
|
+ if (Objects.equals(game.getStatus(), 2)) {
|
|
|
+ log.error("事件回传判断, 测试游戏接入中, 直接返回true, param : {}, userData : {}", JsonUtil.toString(param), JsonUtil.toString(userData));
|
|
|
+ return Boolean.TRUE;
|
|
|
+ }
|
|
|
//查询玩家
|
|
|
User user = userService.getById(userData.getUserId());
|
|
|
//不存在渠道
|
|
@@ -120,7 +126,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
}
|
|
|
//支付
|
|
|
if (Objects.equals(callBackTypeEnum, CallBackTypeEnum.CALL_BACK_PAY_ORDER)) {
|
|
|
- if (Strings.isBlank(param.getRoleId())) {
|
|
|
+ if (Strings.isBlank(param.getOrderId())) {
|
|
|
log.error("事件回传判断, 订单Id参数不存在, param : {}, userData : {}", JsonUtil.toString(param), JsonUtil.toString(userData));
|
|
|
return Boolean.FALSE;
|
|
|
}
|