diff --git a/modules/web/handler/recharge.go b/modules/web/handler/recharge.go index 624ba7c..59c5f95 100644 --- a/modules/web/handler/recharge.go +++ b/modules/web/handler/recharge.go @@ -49,6 +49,9 @@ func RechargeInfoFirst(c *gin.Context) { resp.List = make([]values.PayInfo, 0, len(call.GetConfigFirstPay())) rechargeInfo := call.GetRechargeInfo(a.UID) for _, v := range call.GetConfigFirstPay() { + if rechargeInfo.TotalRechargeCount >= 1 && v.Amount == 100*common.DecimalDigits { + continue + } var bonus int64 _, per, _ := call.GetConfigFirstPayByCount(a.UID, v.Amount, rechargeInfo.BuyAmountDataMap) if per > 0 { @@ -82,6 +85,9 @@ func RechargeInfo(c *gin.Context) { re = call.GetRechargeInfo(a.UID) } for _, v := range call.GetConfigFirstPay() { + if re.TotalRechargeCount >= 1 && v.Amount == 100*common.DecimalDigits { + continue + } one := values.OneConfigPayBonus{ Amount: v.Amount, } @@ -101,6 +107,9 @@ func RechargeInfo(c *gin.Context) { log.Info("data:%+v", data) rechargeInfo := call.GetRechargeInfo(a.UID) for _, v := range list { + if re.TotalRechargeCount >= 1 && v.Amount == 100*common.DecimalDigits { + continue + } one := *v if v.IfSell == 2 { continue