diff --git a/consume/dou_shen_user_register_for_my_my_fans.go b/consume/dou_shen_user_register_for_my_my_fans.go index 22a5649..0ebeaf1 100644 --- a/consume/dou_shen_user_register_for_my_my_fans.go +++ b/consume/dou_shen_user_register_for_my_my_fans.go @@ -80,6 +80,9 @@ func handleDouShenUserRegisterConsumeForMyFans(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 diff --git a/consume/dou_shen_user_register_for_my_my_recommender.go b/consume/dou_shen_user_register_for_my_my_recommender.go index b076df0..bfe6303 100644 --- a/consume/dou_shen_user_register_for_my_my_recommender.go +++ b/consume/dou_shen_user_register_for_my_my_recommender.go @@ -80,6 +80,9 @@ func handleDouShenUserRegisterConsumeForMyRecommender(msgData []byte) error { } 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 diff --git a/consume/dou_shen_user_register_for_operation_center.go b/consume/dou_shen_user_register_for_operation_center.go index 0821c82..6f1453e 100644 --- a/consume/dou_shen_user_register_for_operation_center.go +++ b/consume/dou_shen_user_register_for_operation_center.go @@ -81,6 +81,9 @@ func handleDouShenUserRegisterConsumeForOperationCenter(msgData []byte) error { } 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