总的心动值 百分比根据幸运礼物配置
This commit is contained in:
parent
a6c8da0201
commit
dec232c1e6
@ -906,8 +906,13 @@ public class GiveGiftsListener implements MessageListener {
|
|||||||
//接受用户id
|
//接受用户id
|
||||||
Set<Long> acceptsUserIds = event.getAccepts().stream()
|
Set<Long> acceptsUserIds = event.getAccepts().stream()
|
||||||
.map(GiveAwayGiftRoomAccepts::getAcceptUserId).collect(Collectors.toSet());
|
.map(GiveAwayGiftRoomAccepts::getAcceptUserId).collect(Collectors.toSet());
|
||||||
|
|
||||||
|
// 幸运礼物比例
|
||||||
|
BigDecimal luckyGiftRatio = gameLuckyGiftCommon.getLuckyGiftTargetRatio(event.getSysOrigin().name());
|
||||||
|
|
||||||
//总的心动值
|
//总的心动值
|
||||||
BigDecimal amountTotal = event.countSingleGiftGolds();
|
BigDecimal amountTotal = event.countSingleGiftGolds().multiply(luckyGiftRatio);
|
||||||
|
|
||||||
//先获取房间redis值
|
//先获取房间redis值
|
||||||
List<LiveHeartbeatCache> liveHeartbeatCaches = liveHeartbeatCacheService.listLiveHeartbeat(
|
List<LiveHeartbeatCache> liveHeartbeatCaches = liveHeartbeatCacheService.listLiveHeartbeat(
|
||||||
event.getRoomId());
|
event.getRoomId());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user