|
|
@@ -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 // 剩余可分 |
|
|
|