幸运礼物全局飘窗
This commit is contained in:
parent
ea9cf1913e
commit
cbe510df8a
@ -310,7 +310,7 @@ public class GameLuckyGiftCommon {
|
|||||||
BigDecimal balance = sendGold(param.getUserId(), param.getSysOrigin(), awardAmount);
|
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);
|
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 multiple 中奖倍数
|
||||||
* @param balance 余额
|
* @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()
|
GameLuckyGiftMsgCO giftMsg = new GameLuckyGiftMsgCO()
|
||||||
.setSysOrigin(param.getSysOrigin())
|
.setSysOrigin(param.getSysOrigin())
|
||||||
@ -1186,7 +1186,8 @@ public class GameLuckyGiftCommon {
|
|||||||
|
|
||||||
int luckyGiftPopupMultiple = enumConfigCacheService.getValueInt(
|
int luckyGiftPopupMultiple = enumConfigCacheService.getValueInt(
|
||||||
EnumConfigKey.LUCKY_GIFT_POPUP_MULTIPLE, giftMsg.getSysOrigin());
|
EnumConfigKey.LUCKY_GIFT_POPUP_MULTIPLE, giftMsg.getSysOrigin());
|
||||||
if (giftMsg.getMultiple() > luckyGiftPopupMultiple) {
|
// 中奖了发送飘窗
|
||||||
|
if (awardAmount > 0) {
|
||||||
giftMsg.setGlobalNews(Boolean.TRUE);
|
giftMsg.setGlobalNews(Boolean.TRUE);
|
||||||
imGroupClient.sendMessageBroadcast(
|
imGroupClient.sendMessageBroadcast(
|
||||||
BroadcastGroupMsgBodyCmd.builder()
|
BroadcastGroupMsgBodyCmd.builder()
|
||||||
@ -1195,7 +1196,6 @@ public class GameLuckyGiftCommon {
|
|||||||
.data(giftMsg)
|
.data(giftMsg)
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtils.isBlank(giftMsg.getRoomAccount())) {
|
if (StringUtils.isBlank(giftMsg.getRoomAccount())) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user