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'`