From 7f6edefc6d2889888c0e5396823920795d51f790 Mon Sep 17 00:00:00 2001 From: zhora Date: Sat, 11 Oct 2025 18:36:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E9=A6=96=E5=85=85=E5=B1=8F=E8=94=BD10?= =?UTF-8?q?0=E6=8C=A1=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/handler/recharge.go | 9 +++++++++ 1 file changed, 9 insertions(+) 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