huangjiajun 1 month ago
parent
commit
26ce46d804
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      svc/reward_commission.go

+ 1
- 1
svc/reward_commission.go View File

@@ -869,7 +869,7 @@ func CommFee(fee float64, opt *comm_plan.PlanOpt, types string, rmd *md.Commissi
regionSubFee := fee * opt.RegionSubRate

// 剩余可分配的佣金
total := int64(fee*1e6) - int64(pvdFee*1e6) - int64(sysFee*1e6) - int64(regionFee*1e6) - int64(regionSubFee*1e6) - int64(StoreSubsidyRate*1e6) - int64(regionFee*1e6) - int64(globalFee*1e6) - int64(selfBuyGlobalFee*1e6) - int64(pushHandFee*1e6) - int64(merchantFee*1e6) - int64(newAgentFee*1e6)
total := int64(fee*1e6) - int64(pvdFee*1e6) - int64(sysFee*1e6) - int64(regionFee*1e6) - int64(regionSubFee*1e6) - int64(StoreSubsidyRate*1e6) - int64(RedPacketRate*1e6) - int64(globalFee*1e6) - int64(selfBuyGlobalFee*1e6) - int64(pushHandFee*1e6) - int64(merchantFee*1e6) - int64(newAgentFee*1e6)
for _, v := range opt.RateList {
total -= int64(fee * (v / 100) * 1e6)
}


Loading…
Cancel
Save