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