瀏覽代碼

更新

master
huangjiajun 3 月之前
父節點
當前提交
60d6ccfd8c
共有 1 個檔案被更改,包括 6 行新增6 行删除
  1. +6
    -6
      lib/comm_plan/other.go

+ 6
- 6
lib/comm_plan/other.go 查看文件

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


Loading…
取消
儲存