From 7ea8bef7c8c76519e227b2520770214f7bc8236f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 3 Aug 2023 10:50:46 +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 --- consume/dou_shen_user_register_for_official_consume.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consume/dou_shen_user_register_for_official_consume.go b/consume/dou_shen_user_register_for_official_consume.go index 9fb73ac..7c391b2 100644 --- a/consume/dou_shen_user_register_for_official_consume.go +++ b/consume/dou_shen_user_register_for_official_consume.go @@ -87,6 +87,9 @@ func handleDouShenUserRegisterConsumeForOfficial(msgData []byte) error { if err != nil { return err } + if user == nil { + return nil + } userProfile, err := db.UserProfileFindByID(db.DBs[msg.MasterId], user.Uid) if err != nil { return err