|
@@ -585,7 +585,7 @@ func CommFee(fee float64, opt *comm_plan.PlanOpt, types string, rmd *md.Commissi |
|
|
return fee, feeFirst, 0, 0 |
|
|
return fee, feeFirst, 0, 0 |
|
|
} |
|
|
} |
|
|
isGoods := rmd.IsGoods |
|
|
isGoods := rmd.IsGoods |
|
|
if isGoods == "1" && rmd.IsTask != 1 { |
|
|
|
|
|
|
|
|
if isGoods == "1" && rmd.IsTask != "1" { |
|
|
orderBeforeRate := fee * opt.OrderBeforeRate |
|
|
orderBeforeRate := fee * opt.OrderBeforeRate |
|
|
orderBeforeRateFirst := feeFirst * opt.OrderBeforeRate |
|
|
orderBeforeRateFirst := feeFirst * opt.OrderBeforeRate |
|
|
fee1 := int64(fee*1e4) - int64(orderBeforeRate*1e4) |
|
|
fee1 := int64(fee*1e4) - int64(orderBeforeRate*1e4) |
|
|