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