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