Browse Source

add reverse:for v1.1.2 分佣方案优化

tags/v1.1.2
huangjiajun 2 years ago
parent
commit
170c4cad9a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/comm_plan/all.go

+ 3
- 0
lib/comm_plan/all.go View File

@@ -205,6 +205,9 @@ func sameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio, res
if opt.UserRate == nil {
return 0, restAmt, totalRatio, peerRate, subsidyFee, true
}
if opt.UserRate[lv] == nil {
return 0, restAmt, totalRatio, peerRate, subsidyFee, true
}
//极差返利
if opt.UserRate[lv].PayMode == 0 && isOnlySubsidy == 0 {
restAmt -= profit // 剩余可分


Loading…
Cancel
Save