From 62a0c7da362b07658904d0b7f025a825b164a31a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 23 Apr 2024 01:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=B8=AA=E6=A9=98=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_deal_commission.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/svc/svc_deal_commission.go b/app/svc/svc_deal_commission.go index 1adbe0b..6279dbf 100644 --- a/app/svc/svc_deal_commission.go +++ b/app/svc/svc_deal_commission.go @@ -25,6 +25,9 @@ func GetLvUser(engine *xorm.Engine, CommissionParam md2.CommissionFirstParam, oi if err != nil { return } + if lvUser == nil { + return + } CommOrderRelateInsert(engine, oid, CommissionParam.Provider, int(time.Now().Unix()), lvUser, mapData) sql := `SELECT id from user_virtual_coin_flow where ord_id='%d'`