Browse Source

更新

master
huangjiajun 3 months ago
parent
commit
60d6ccfd8c
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      lib/comm_plan/other.go

+ 6
- 6
lib/comm_plan/other.go View File

@@ -145,10 +145,10 @@ func otherSameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio
} }
//极差返利 //极差返利
if opt.UserRate[lv].PayMode == 0 && isOnlySubsidy == 0 { 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 peerRate += restRatio
totalRatio += restRatio
//totalRatio += restRatio
} else if isOnlySubsidy == 1 { //如果只返补贴 当成是极差的一部分 所以要扣 不是额外的 } else if isOnlySubsidy == 1 { //如果只返补贴 当成是极差的一部分 所以要扣 不是额外的
profit = 0 profit = 0
if opt.UserRate[lv].PayMode == 0 { if opt.UserRate[lv].PayMode == 0 {
@@ -156,9 +156,9 @@ func otherSameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio
subsidyFee = 0 subsidyFee = 0
return profit, restAmt, totalRatio, subsidyFee, peerRate, true 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 return profit, restAmt, totalRatio, peerRate, subsidyFee, false


Loading…
Cancel
Save