From d32093c6b1de4a8851ef38f009d1501fc6fa61fb Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 27 Oct 2025 18:57:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E5=8A=A8=E5=80=BC=EF=BC=8C=E9=80=81?= =?UTF-8?q?=E6=99=AE=E9=80=9A=E7=A4=BC=E7=89=A9=E5=BF=83=E5=8A=A8=E5=80=BC?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0100%?= 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, 1 insertion(+), 6 deletions(-) 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 6dc6af2d..710aaa60 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 @@ -915,15 +915,10 @@ public class GiveGiftsListener implements MessageListener { // 礼物比例 - BigDecimal giftRatio; + BigDecimal giftRatio = BigDecimal.valueOf(1L); if (event.checkLuckyGift()) { // 幸运礼物比例 giftRatio = gameLuckyGiftCommon.getLuckyGiftTargetRatio(event.getSysOrigin().name()); - } else { - RegionConfig acceptRegion = getUserRegion(userId); - giftRatio = Objects.equals(event.getSendUserId(), userId) ? - getAssistGiftToOwnGoldRatio(acceptRegion.getId()) : - getAssistGiftToOtherGoldRatio(acceptRegion.getId()); } //总的心动值 BigDecimal amountTotal = event.countSingleGiftGolds().multiply(giftRatio);