From cbe510df8a3edb30024d9a993bac1654c348db1d Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 18 Sep 2025 10:20:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B8=E8=BF=90=E7=A4=BC=E7=89=A9=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E9=A3=98=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/common/gift/GameLuckyGiftCommon.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/common/gift/GameLuckyGiftCommon.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/common/gift/GameLuckyGiftCommon.java index c4270d74..3cc08015 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/common/gift/GameLuckyGiftCommon.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/common/gift/GameLuckyGiftCommon.java @@ -310,7 +310,7 @@ public class GameLuckyGiftCommon { BigDecimal balance = sendGold(param.getUserId(), param.getSysOrigin(), awardAmount); // 发送中奖通知 - sendMsg(param, multiple, balance); + sendMsg(param, multiple, balance, awardAmount); } @@ -349,7 +349,7 @@ public class GameLuckyGiftCommon { BigDecimal balance = sendGold(param.getUserId(), param.getSysOrigin(), awardAmount); // 发送中奖通知 - sendMsg(param, multiple, balance); + sendMsg(param, multiple, balance, awardAmount); } @@ -1160,7 +1160,7 @@ public class GameLuckyGiftCommon { * @param multiple 中奖倍数 * @param balance 余额 */ - private void sendMsg(GameLuckyGiftParam param, Integer multiple, BigDecimal balance) { + private void sendMsg(GameLuckyGiftParam param, Integer multiple, BigDecimal balance, Long awardAmount) { GameLuckyGiftMsgCO giftMsg = new GameLuckyGiftMsgCO() .setSysOrigin(param.getSysOrigin()) @@ -1186,7 +1186,8 @@ public class GameLuckyGiftCommon { int luckyGiftPopupMultiple = enumConfigCacheService.getValueInt( EnumConfigKey.LUCKY_GIFT_POPUP_MULTIPLE, giftMsg.getSysOrigin()); - if (giftMsg.getMultiple() > luckyGiftPopupMultiple) { + // 中奖了发送飘窗 + if (awardAmount > 0) { giftMsg.setGlobalNews(Boolean.TRUE); imGroupClient.sendMessageBroadcast( BroadcastGroupMsgBodyCmd.builder() @@ -1195,7 +1196,6 @@ public class GameLuckyGiftCommon { .data(giftMsg) .build() ); -// return; } if (StringUtils.isBlank(giftMsg.getRoomAccount())) {