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)