From 55023a62251da228083ecdc98e1de3477caa5f63 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 20 Jul 2023 09:45:19 +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_user_register_up_lv.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consume/dou_shen_user_register_for_user_register_up_lv.go b/consume/dou_shen_user_register_for_user_register_up_lv.go index 2ade7e1..b9f4666 100644 --- a/consume/dou_shen_user_register_for_user_register_up_lv.go +++ b/consume/dou_shen_user_register_for_user_register_up_lv.go @@ -58,6 +58,9 @@ func handleDouShenUserRegisterConsumeForUserRegisterUpLv(msgData []byte) error { if err != nil { return err } + if db.DBs[msg.MasterId] == nil { + return nil + } eg := db.DBs[msg.MasterId] levelList, _ := db.UserLevlEgAll(eg) FindUser(eg, strconv.FormatInt(msg.Uid, 10), msg.MasterId, levelList)