diff --git a/lib/comm_plan/all.go b/lib/comm_plan/all.go index c4bcdb0..9c294e0 100644 --- a/lib/comm_plan/all.go +++ b/lib/comm_plan/all.go @@ -259,7 +259,7 @@ func sameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio, res } restAmt -= subsidyFee // 剩余可分 restAmt = zhios_order_relate_utils.FloatFormat(restAmt, 2) - totalRatio += zhios_order_relate_utils.FloatFormat(subsidyBili, 2) + totalRatio += zhios_order_relate_utils.FloatFormat(subsidyBili, 6) } } return profit, restAmt, totalRatio, peerRate, subsidyFee, false @@ -363,7 +363,7 @@ func sameMoneyV2(lv, isOnlySubsidy int, totalAmtList, restAmtList, profitList, p func teamDiffMoney(profit float64, payMode, isOnlySubsidy int, totalAmt, restAmt, teamRatio, totalRatio, peerRate, subsidyFee, subsidyRatio float64) (float64, float64, float64, float64, bool) { // 如果是团队内部支出团队比例大于同级累计比例 或站长支出 if payMode == 1 || teamRatio > peerRate { - teamRatio = zhios_order_relate_utils.FloatFormat(teamRatio-totalRatio, 2) + teamRatio = zhios_order_relate_utils.FloatFormat(teamRatio-totalRatio, 6) } //极差返利 if isOnlySubsidy == 0 { @@ -381,7 +381,7 @@ func teamDiffMoney(profit float64, payMode, isOnlySubsidy int, totalAmt, restAmt restAmt -= profit // 剩余可分 } else if isOnlySubsidy == 1 { //如果只返补贴 当成是极差的一部分 所以要扣 不是额外的 - totalRatio += zhios_order_relate_utils.FloatFormat(subsidyRatio, 2) + totalRatio += zhios_order_relate_utils.FloatFormat(subsidyRatio, 6) profit = 0 if restAmt < subsidyFee { profit = 0 diff --git a/lib/comm_plan/other.go b/lib/comm_plan/other.go index 8cbdd0d..bf3a18d 100644 --- a/lib/comm_plan/other.go +++ b/lib/comm_plan/other.go @@ -157,7 +157,7 @@ func otherSameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio } restAmt -= subsidyFee // 剩余可分 restAmt = zhios_order_relate_utils.FloatFormat(restAmt, 2) - totalRatio += zhios_order_relate_utils.FloatFormat(subsidyBili, 2) + totalRatio += zhios_order_relate_utils.FloatFormat(subsidyBili, 6) } } return profit, restAmt, totalRatio, peerRate, subsidyFee, false