From 10b46530f1eeac196125ee550f51c3f55aebf4f0 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 20 Jul 2023 09:30:02 +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 3dfbd02..17e172e 100644 --- a/consume/dou_shen_user_register_for_official_consume.go +++ b/consume/dou_shen_user_register_for_official_consume.go @@ -79,6 +79,9 @@ func handleDouShenUserRegisterConsumeForOfficial(msgData []byte) error { return err } if gimUser == nil { + if db.DBs[msg.MasterId] == nil { + return nil + } user, err := db.UserFindByMobile(db.DBs[msg.MasterId], strconv.FormatInt(msg.Phone, 10)) if err != nil { return err