|
@@ -259,7 +259,7 @@ func sameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio, res |
|
|
} |
|
|
} |
|
|
restAmt -= subsidyFee // 剩余可分 |
|
|
restAmt -= subsidyFee // 剩余可分 |
|
|
restAmt = zhios_order_relate_utils.FloatFormat(restAmt, 2) |
|
|
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 |
|
|
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) { |
|
|
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 { |
|
|
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 { |
|
|
if isOnlySubsidy == 0 { |
|
@@ -381,7 +381,7 @@ func teamDiffMoney(profit float64, payMode, isOnlySubsidy int, totalAmt, restAmt |
|
|
restAmt -= profit // 剩余可分 |
|
|
restAmt -= profit // 剩余可分 |
|
|
|
|
|
|
|
|
} else if isOnlySubsidy == 1 { //如果只返补贴 当成是极差的一部分 所以要扣 不是额外的 |
|
|
} else if isOnlySubsidy == 1 { //如果只返补贴 当成是极差的一部分 所以要扣 不是额外的 |
|
|
totalRatio += zhios_order_relate_utils.FloatFormat(subsidyRatio, 2) |
|
|
|
|
|
|
|
|
totalRatio += zhios_order_relate_utils.FloatFormat(subsidyRatio, 6) |
|
|
profit = 0 |
|
|
profit = 0 |
|
|
if restAmt < subsidyFee { |
|
|
if restAmt < subsidyFee { |
|
|
profit = 0 |
|
|
profit = 0 |
|
|