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())) {