|
|
@@ -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, |
|
|
|