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 63f89f0e..393d57f4 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 @@ -242,7 +242,7 @@ public class GameLuckyGiftCommon { } // 发送中奖金币 - BigDecimal balance = sendGold(param.getUserId(), param.getSysOrigin(), rewardAmount); + BigDecimal balance = sendGold(param.getUserId(), param.getGiftId(), param.getSysOrigin(), rewardAmount); // 发送中奖通知 int multiple = getRewardMultiple(param, rewardAmount); @@ -362,7 +362,7 @@ public class GameLuckyGiftCommon { } // 发送中奖金币 - BigDecimal balance = sendGold(param.getUserId(), param.getSysOrigin(), awardAmount); + BigDecimal balance = sendGold(param.getUserId(), param.getGiftId(), param.getSysOrigin(), awardAmount); // 发送中奖通知 sendMsg(param, multiple, balance, awardAmount); @@ -1206,12 +1206,12 @@ public class GameLuckyGiftCommon { /** * 发送金币. */ - private BigDecimal sendGold(Long userId, String sysOrigin, Long amount) { + private BigDecimal sendGold(Long userId, Long giftId, String sysOrigin, Long amount) { return ResponseAssert.requiredSuccess( walletGoldClient.changeBalance(GoldReceiptCmd.builder() .appIncome() .userId(userId) - .eventId(userId) + .eventId(giftId) .sysOrigin(SysOriginPlatformEnum.valueOf(sysOrigin)) .origin(GoldOrigin.LUCKY_GIFT_GOLD_REWARD) .amount(ArithmeticUtils.toBigDecimal(amount))