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);