From 60d6ccfd8ce507ff27a1d5e20ee42b2137ada57d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 8 Jul 2024 10:30:28 +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/other.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/comm_plan/other.go b/lib/comm_plan/other.go index 3e0d1dd..ca8703d 100644 --- a/lib/comm_plan/other.go +++ b/lib/comm_plan/other.go @@ -145,10 +145,10 @@ func otherSameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio } //极差返利 if opt.UserRate[lv].PayMode == 0 && isOnlySubsidy == 0 { - restAmt -= profit // 剩余可分 - restAmt = zhios_order_relate_utils.FloatFormat(restAmt, 2) + //restAmt -= profit // 剩余可分 + //restAmt = zhios_order_relate_utils.FloatFormat(restAmt, 2) peerRate += restRatio - totalRatio += restRatio + //totalRatio += restRatio } else if isOnlySubsidy == 1 { //如果只返补贴 当成是极差的一部分 所以要扣 不是额外的 profit = 0 if opt.UserRate[lv].PayMode == 0 { @@ -156,9 +156,9 @@ func otherSameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio subsidyFee = 0 return profit, restAmt, totalRatio, subsidyFee, peerRate, true } - restAmt -= subsidyFee // 剩余可分 - restAmt = zhios_order_relate_utils.FloatFormat(restAmt, 2) - totalRatio += zhios_order_relate_utils.FloatFormat(subsidyBili, 6) + //restAmt -= subsidyFee // 剩余可分 + //restAmt = zhios_order_relate_utils.FloatFormat(restAmt, 2) + //totalRatio += zhios_order_relate_utils.FloatFormat(subsidyBili, 6) } } return profit, restAmt, totalRatio, peerRate, subsidyFee, false