游戏王触发奖励list处理
This commit is contained in:
parent
3afd652431
commit
737e6bcae1
@ -71,8 +71,11 @@ public class RankingActivityServiceImpl implements RankingActivityService {
|
||||
|
||||
RankingListCO result = rankingListQryExe.execute(cmd);
|
||||
|
||||
if (result != null) {
|
||||
if (result != null && CollectionUtils.isNotEmpty(result.getRankingList())) {
|
||||
redisService.setString(cacheKey, JSON.toJSONString(result), CACHE_EXPIRE_MINUTES, TimeUnit.MINUTES);
|
||||
|
||||
result.setRankingList(result.getRankingList().stream().limit(10).toList());
|
||||
sendGameKingRewardEvent(cmd, result);
|
||||
}
|
||||
|
||||
return result;
|
||||
@ -109,8 +112,9 @@ public class RankingActivityServiceImpl implements RankingActivityService {
|
||||
RankingListCO result = rankingListQryExe.execute(top4Cmd);
|
||||
|
||||
if (result != null && CollectionUtils.isNotEmpty(result.getRankingList())) {
|
||||
result.setRankingList(result.getRankingList().stream().limit(10).toList());
|
||||
redisService.setString(cacheKey, JSON.toJSONString(result), CACHE_EXPIRE_MINUTES, TimeUnit.MINUTES);
|
||||
|
||||
result.setRankingList(result.getRankingList().stream().limit(10).toList());
|
||||
sendGameKingRewardEvent(cmd, result);
|
||||
return convertToRankingUserVOList(result);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user