top10Result处理
This commit is contained in:
parent
737e6bcae1
commit
ddbf49d2d7
@ -74,8 +74,9 @@ public class RankingActivityServiceImpl implements RankingActivityService {
|
|||||||
if (result != null && CollectionUtils.isNotEmpty(result.getRankingList())) {
|
if (result != null && CollectionUtils.isNotEmpty(result.getRankingList())) {
|
||||||
redisService.setString(cacheKey, JSON.toJSONString(result), CACHE_EXPIRE_MINUTES, TimeUnit.MINUTES);
|
redisService.setString(cacheKey, JSON.toJSONString(result), CACHE_EXPIRE_MINUTES, TimeUnit.MINUTES);
|
||||||
|
|
||||||
result.setRankingList(result.getRankingList().stream().limit(10).toList());
|
RankingListCO top10Result = new RankingListCO();
|
||||||
sendGameKingRewardEvent(cmd, result);
|
top10Result.setRankingList(result.getRankingList().stream().limit(10).toList());
|
||||||
|
sendGameKingRewardEvent(cmd, top10Result);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user