From 6612c79f973af6726de697e70c18485305616038 Mon Sep 17 00:00:00 2001 From: zhora Date: Mon, 22 Sep 2025 10:43:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E7=A0=81=E9=87=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- call/pay.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/call/pay.go b/call/pay.go index 0c81c78..bd8587e 100644 --- a/call/pay.go +++ b/call/pay.go @@ -229,7 +229,10 @@ func RechargeCallback(r *common.RechargeOrder, success bool, payAccount, extra s needBet = GetConfigCurrencyResourceNeedBetByActId(r.ActivityID, amount) } if needBet == 0 { - needBet = GetConfigCurrencyResourceNeedBet(t, amount+bonus) + needBet += GetConfigCurrencyResourceNeedBet(common.CurrencyResourceRecharge, amount) + if bonus > 0 { + needBet += GetConfigCurrencyResourceNeedBet(t, bonus) + } } cb := &common.CurrencyBalance{