From a60bc207b29e7abb30dc8dc821f2992c892e6749 Mon Sep 17 00:00:00 2001 From: zhora Date: Wed, 29 Oct 2025 11:50:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E9=9B=B6=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/backend/handler/examine/examine.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/backend/handler/examine/examine.go b/modules/backend/handler/examine/examine.go index 97ce3e7..fd8c7c3 100644 --- a/modules/backend/handler/examine/examine.go +++ b/modules/backend/handler/examine/examine.go @@ -115,7 +115,11 @@ func WithdrawList(c *gin.Context) { payList[v.ChannelID] = call.GetWithdrawChannelName(v.ChannelID) } for index, v := range WithdrawOrderArr { - WithdrawOrderArr[index].WithDrawPer = (v.Inr + v.TotalWithdraw + v.TotalWithdrawing) * 100 / v.TotalRecharge + totalRecharge := v.TotalRecharge + if totalRecharge == 0 { + totalRecharge = 1 + } + WithdrawOrderArr[index].WithDrawPer = (v.Inr + v.TotalWithdraw + v.TotalWithdrawing) * 100 / totalRecharge } a.Data = values.WithdrawListResp{List: WithdrawOrderArr, Count: count, PayList: payList} }