热游返回错误码处理

This commit is contained in:
tianfeng 2025-11-28 11:34:33 +08:00
parent 7ea07d45c9
commit 814b6fdf76
2 changed files with 10 additions and 9 deletions

View File

@ -102,6 +102,7 @@ public class HotGameRestController {
HotGameResponse<HotGameCoinVO> res = new HotGameResponse<>();
res.setData(new HotGameCoinVO().setCoin(data.getBalanceCoin()).setResponseId(IdWorkerUtils.getIdStr()));
res.setErrorCode(HotGameErrorEnum.SUCCESS.getErrorCode());
return res;
}

View File

@ -197,15 +197,15 @@ public class HotGameServiceImpl implements HotGameService {
log.error("ex:{}", Throwables.getStackTraceAsString(ex));
}
//游玩一句游戏结束 每日任务 热游
taskMqMessage.sendTask(TaskApprovalEvent.builder()
.taskId(4)
.userId(userId)
.day(LocalDateTimeUtils.nowFormat("yyyy-MM-dd"))
.currencyDiff(param.getCoin())
.sysOrigin(UserCredential.parseToken(param.getToken()).getSysOrigin())
.gameName(GoldOrigin.HOT_GAME.name())
.gameId(Long.parseLong(param.getGameId()))
.build());
// taskMqMessage.sendTask(TaskApprovalEvent.builder()
// .taskId(4)
// .userId(userId)
// .day(LocalDateTimeUtils.nowFormat("yyyy-MM-dd"))
// .currencyDiff(param.getCoin())
// .sysOrigin(UserCredential.parseToken(param.getToken()).getSysOrigin())
// .gameName(GoldOrigin.HOT_GAME.name())
// .gameId(Long.parseLong(param.getGameId()))
// .build());
return new HotGameResponse<HotGameCoin>()
.setErrorCode(HotGameErrorEnum.SERVER_ERROR.getErrorCode());