diff --git a/consume/user_register_for_my_my_fans.go b/consume/user_register_for_my_my_fans.go index 5466583..46196a3 100644 --- a/consume/user_register_for_my_my_fans.go +++ b/consume/user_register_for_my_my_fans.go @@ -75,6 +75,10 @@ func handleUserRegisterConsumeForMyFans(msgData []byte) error { if err != nil { return err } + if msg.Phone == 0 { + return errors.New("手机号有误~") + } + //TODO::判断是否已操作过 get, err1 := cache.GetBit(UserRegisterConsumeForMyFansKey, msg.Uid) if err1 != nil || get == 0 { @@ -138,7 +142,7 @@ func handleUserRegisterConsumeForMyFans(msgData []byte) error { //插入 im_group 记录 now := time.Now() _, err = db.ImGroupInsert(db.Db, &model.ImGroup{ - Kind: 3, + Kind: 2, Uid: int(msg.Uid), GroupId: int(resp.GroupId), IsFull: 0, diff --git a/consume/user_register_for_my_my_recommender.go b/consume/user_register_for_my_my_recommender.go index 804aa73..11e9416 100644 --- a/consume/user_register_for_my_my_recommender.go +++ b/consume/user_register_for_my_my_recommender.go @@ -74,6 +74,9 @@ func handleUserRegisterConsumeForMyRecommender(msgData []byte) error { if err != nil { return err } + if msg.Phone == 0 { + return errors.New("手机号有误~") + } //TODO::判断是否已操作过 get, err1 := cache.GetBit(UserRegisterConsumeForMyRecommenderKey, msg.Uid) @@ -179,7 +182,7 @@ func handleUserRegisterConsumeForMyRecommender(msgData []byte) error { //插入 im_group 记录 now := time.Now() _, err = db.ImGroupInsert(db.Db, &model2.ImGroup{ - Kind: 3, + Kind: 2, Uid: int(msg.RecommenderUid), GroupId: int(resp.GroupId), IsFull: 0, diff --git a/consume/user_register_for_official_consume.go b/consume/user_register_for_official_consume.go index 289c015..16a7403 100644 --- a/consume/user_register_for_official_consume.go +++ b/consume/user_register_for_official_consume.go @@ -97,6 +97,9 @@ func handleUserRegisterConsumeForOfficial(msgData []byte) error { if err != nil { return err } + if msg.Phone == 0 { + return errors.New("手机号有误~") + } //TODO::判断是否已操作过 get, err1 := cache.GetBit(UserRegisterConsumeForOfficialKey, msg.Uid) if err1 != nil || get == 0 {