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