瀏覽代碼

更新

master
huangjiajun 6 月之前
父節點
當前提交
1ae43cfc80
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      svc/reward_commission.go

+ 4
- 4
svc/reward_commission.go 查看文件

@@ -591,11 +591,11 @@ func CommFee(fee float64, opt *comm_plan.PlanOpt, types string, rmd *md.Commissi
fee1 := int64(fee*1e9) - int64(orderBeforeRate*1e9)
feeFirst1 := int64(feeFirst*1e9) - int64(orderBeforeRateFirst*1e9)
if opt.PointType == 1 { //四舍五入
fee, _ = decimal.NewFromFloat(float64(fee1) / 10000).Round(2).Float64()
feeFirst, _ = decimal.NewFromFloat(float64(feeFirst1) / 10000).Round(2).Float64()
fee, _ = decimal.NewFromFloat(float64(fee1) / 1e9).Round(2).Float64()
feeFirst, _ = decimal.NewFromFloat(float64(feeFirst1) / 1e9).Round(2).Float64()
} else {
fee = float64(int64(float64(fee1)/100)) / 100
feeFirst = float64(int64(float64(feeFirst1)/100)) / 100
fee = (float64(fee1) / 1e9)
feeFirst = (float64(feeFirst1) / 1e9)
}
}
pvdFee := fee * opt.PvdRate // 供应商联盟比例


Loading…
取消
儲存