Parcourir la source

更新

master
huangjiajun il y a 6 mois
Parent
révision
1ae43cfc80
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. +4
    -4
      svc/reward_commission.go

+ 4
- 4
svc/reward_commission.go Voir le fichier

@@ -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 // 供应商联盟比例


Chargement…
Annuler
Enregistrer