dev_aagame_provider
zhora 1 month ago
parent 95dec7d157
commit 7d1d2730b6
  1. 2
      common/currency.go
  2. 6
      modules/web/handler/activity.go
  3. 2
      modules/web/handler/share.go

@ -34,6 +34,8 @@ const (
CurrencyResourceThirdRecharge // 第三次充 CurrencyResourceThirdRecharge // 第三次充
CurrencyResourceVipBonus // vip奖励 CurrencyResourceVipBonus // vip奖励
CurrencyResourceRechargeWithBonus // 一般充值(有bonus) CurrencyResourceRechargeWithBonus // 一般充值(有bonus)
CurrencyResourceDayBack
CurrencyResourceAll CurrencyResourceAll
) )

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

@ -892,7 +892,7 @@ func ShareWithdraw(c *gin.Context) {
Value: req.Amount, Value: req.Amount,
Event: common.CurrencyEventShare, Event: common.CurrencyEventShare,
Type: common.CurrencyINR, Type: common.CurrencyINR,
NeedBet: call.GetConfigCurrencyResourceNeedBet(common.CurrencyResourceBonus, req.Amount, 1), NeedBet: call.GetConfigCurrencyResourceNeedBet(common.CurrencyResourceShare, req.Amount),
}, },
}) })
if err != nil { if err != nil {

Loading…
Cancel
Save