From 2b79d8f486599596b21ff1fbf90aa1fc786968a9 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 25 Sep 2023 20:04:01 +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 --- svc/reward_commission.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svc/reward_commission.go b/svc/reward_commission.go index e734ab7..b49ee22 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -309,6 +309,9 @@ func public(engine *xorm.Engine, ulinkParent *comm_plan.LvUser, cfg *comm_plan.P } if err == nil && nowBenefitUid != "" { user, _ := db.UserFindByID(engine, nowBenefitUid) + if user == nil { + return ulinkParent + } var commonWealthSystem = make(map[string]string) grade := cfg.UserRate[user.Level] if grade != nil {