top10Result处理

This commit is contained in:
tianfeng 2025-12-19 11:19:08 +08:00
parent 737e6bcae1
commit ddbf49d2d7

View File

@ -74,8 +74,9 @@ public class RankingActivityServiceImpl implements RankingActivityService {
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);
RankingListCO top10Result = new RankingListCO();
top10Result.setRankingList(result.getRankingList().stream().limit(10).toList());
sendGameKingRewardEvent(cmd, top10Result);
}
return result;