diff --git a/app/task/svc/svc_elm_order.go b/app/task/svc/svc_elm_order.go index 4fea111..806dae9 100644 --- a/app/task/svc/svc_elm_order.go +++ b/app/task/svc/svc_elm_order.go @@ -147,7 +147,7 @@ func OrdersElmGet(p int, pageSize int, sTime, eTime int64, timeType string, pvd *v.PlatformCommissionFee = utils.Float64ToStr(fee) } res.Commission = utils.Float64ToStr(utils.StrToFloat64(*v.Income) - utils.StrToFloat64(*v.PlatformCommissionFee)) - if v.Settle != nil { + if v.Settle != nil && utils.StrToFloat64(*v.Settle) > 0 { res.RealCommission = utils.Float64ToStr(utils.StrToFloat64(*v.Settle) - utils.StrToFloat64(*v.PlatformCommissionFee)) } res.Title = *v.Title