From dec232c1e63fada36978f4f7620b5a209557bb90 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 29 Sep 2025 19:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E7=9A=84=E5=BF=83=E5=8A=A8=E5=80=BC?= =?UTF-8?q?=20=E7=99=BE=E5=88=86=E6=AF=94=E6=A0=B9=E6=8D=AE=E5=B9=B8?= =?UTF-8?q?=E8=BF=90=E7=A4=BC=E7=89=A9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle/other/app/listener/gift/GiveGiftsListener.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/GiveGiftsListener.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/GiveGiftsListener.java index 7bb7a461..c90f2756 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/GiveGiftsListener.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/GiveGiftsListener.java @@ -906,8 +906,13 @@ public class GiveGiftsListener implements MessageListener { //接受用户id Set 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 liveHeartbeatCaches = liveHeartbeatCacheService.listLiveHeartbeat( event.getRoomId());