|
|
|
|
@ -656,7 +656,7 @@ func ActivityFirstRechargeBackInfo(c *gin.Context) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if data.Reward == 0 { // 计算奖励
|
|
|
|
|
val := data.Amount - call.GetUserCurrencyTotal(a.UID, common.CurrencyINR) - rechargeInfo.WithdrawingCash |
|
|
|
|
val := data.Amount - call.GetUserCurrencyTotal(a.UID, common.CurrencyINR) - rechargeInfo.TotalWithdraw - rechargeInfo.WithdrawingCash |
|
|
|
|
if val < 0 { |
|
|
|
|
val = 0 |
|
|
|
|
} |
|
|
|
|
@ -716,7 +716,7 @@ func ActivityFirstRechargeBackDraw(c *gin.Context) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
rechargeInfo := call.GetRechargeInfo(a.UID) |
|
|
|
|
val := data.Amount - call.GetUserCurrencyTotal(a.UID, common.CurrencyINR) - rechargeInfo.WithdrawingCash |
|
|
|
|
val := data.Amount - call.GetUserCurrencyTotal(a.UID, common.CurrencyINR) - rechargeInfo.TotalWithdraw - rechargeInfo.WithdrawingCash |
|
|
|
|
if val < 0 { |
|
|
|
|
val = 0 |
|
|
|
|
} |
|
|
|
|
@ -736,7 +736,7 @@ func ActivityFirstRechargeBackDraw(c *gin.Context) { |
|
|
|
|
Type: common.CurrencyINR, |
|
|
|
|
Value: val, |
|
|
|
|
Event: common.CurrencyEventActivityFirstRechargeBack, |
|
|
|
|
NeedBet: call.GetConfigCurrencyResourceNeedBet(common.CurrencyResourceBonus, val), |
|
|
|
|
NeedBet: call.GetConfigCurrencyResourceNeedBet(common.CurrencyResourceDayBack, val), |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
if err != nil { |
|
|
|
|
|