From 9b4b33e93ea64e319f484ce31d1e008d330f72ed Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 12 Jun 2024 11:59:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/comm_plan/ds_check.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/comm_plan/ds_check.go b/lib/comm_plan/ds_check.go index 3522e4a..da8730d 100644 --- a/lib/comm_plan/ds_check.go +++ b/lib/comm_plan/ds_check.go @@ -166,6 +166,12 @@ func CalReturnAmountAndRatioDsSecond(level, ownbuyReturnType, peerNum int, userT newFee = node.Profit } ratio := getVirtualCoinRatioDsOwn(userType, level, peerNum, opt.UserRate, coinId, 0) + for k := range opt.VirtualCoinMoneyRatioList { + if k == 0 { + continue + } + opt.VirtualCoinMoneyRatioList[k] = "1" + } amount := getCoinAmount(ratio, zhios_order_relate_utils.StrToInt(coinId), newFee, opt.VirtualCoinMoneyRatioList) if coinId == "0" { // commission = amount