Преглед изворни кода

add reverse:for v3.7.0 佣金比例位数调整

tags/v3.7.0
huangjiajun пре 2 година
родитељ
комит
b571584a13
2 измењених фајлова са 4 додато и 4 уклоњено
  1. +3
    -3
      lib/comm_plan/all.go
  2. +1
    -1
      lib/comm_plan/other.go

+ 3
- 3
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


+ 1
- 1
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


Loading…
Откажи
Сачувај