From 0e00aea5257fa9885d6af05a116ffa8c8557647f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 18 Sep 2024 18:43:18 +0800 Subject: [PATCH] 1 --- svc/reward_commission.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svc/reward_commission.go b/svc/reward_commission.go index 34c61ac..612d699 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -776,6 +776,9 @@ func getCommission(d *md.CommissionParam, provider string) (string, string) { return zhios_order_relate_utils.Float64ToStr(com), currentPrice default: if zhios_order_relate_utils.StrToFloat64(d.GoodsPrice) == 0 { + if zhios_order_relate_utils.StrToFloat64(d.PaidPrice) > 0 { + return d.Commission, d.PaidPrice + } //如果价格没有直接返回佣金 return d.Commission, d.Commission }