From 8d8f689cbb21e6d9e6c23d8e33ad7f9e468bd9a5 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 1 Aug 2024 12:50:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/task/svc/svc_elm_order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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