瀏覽代碼

add reverse:for v3.7.9 抽成调整

tags/v3.7.9
huangjiajun 1 年之前
父節點
當前提交
7c27201787
共有 1 個檔案被更改,包括 5 行新增3 行删除
  1. +5
    -3
      svc/reward_commission.go

+ 5
- 3
svc/reward_commission.go 查看文件

@@ -435,12 +435,14 @@ func CommFee(fee float64, opt *comm_plan.PlanOpt, types, isGoods string) (float6
pushHandFee := fee * opt.PushHandRate
merchantFee := fee * opt.MerchantRate
newAgentFee := fee * opt.NewAgentRate
// 剩余可分配的佣金
total := int64(fee*1e4) - int64(pvdFee*1e4) - int64(sysFee*1e4) - int64(regionFee*1e4) - int64(globalFee*1e4) - int64(pushHandFee*1e4) - int64(merchantFee*1e4) - int64(newAgentFee*1e4)
if isGoods == "1" {
orderBeforeRate := fee * opt.OrderBeforeRate
total = total - int64(orderBeforeRate*1e4)
fee1 := int64(fee*1e4) - int64(orderBeforeRate*1e4)
fee = float64(fee1) / 1e4
}
// 剩余可分配的佣金
total := int64(fee*1e4) - int64(pvdFee*1e4) - int64(sysFee*1e4) - int64(regionFee*1e4) - int64(globalFee*1e4) - int64(pushHandFee*1e4) - int64(merchantFee*1e4) - int64(newAgentFee*1e4)

fee = float64(total) / 1e4
return fee, pvdFee, sysFee
}


Loading…
取消
儲存