一次只发送10个
This commit is contained in:
parent
be0ca33fc5
commit
7e8fef8450
@ -109,6 +109,7 @@ public class RankingActivityServiceImpl implements RankingActivityService {
|
|||||||
RankingListCO result = rankingListQryExe.execute(top4Cmd);
|
RankingListCO result = rankingListQryExe.execute(top4Cmd);
|
||||||
|
|
||||||
if (result != null && CollectionUtils.isNotEmpty(result.getRankingList())) {
|
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);
|
redisService.setString(cacheKey, JSON.toJSONString(result), CACHE_EXPIRE_MINUTES, TimeUnit.MINUTES);
|
||||||
sendGameKingRewardEvent(cmd, result);
|
sendGameKingRewardEvent(cmd, result);
|
||||||
return convertToRankingUserVOList(result);
|
return convertToRankingUserVOList(result);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user