中奖字段调整
This commit is contained in:
parent
0840754203
commit
435bf5e728
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user