Browse Source

update

gim
dengbiao 3 days ago
parent
commit
facec4a3d0
3 changed files with 12 additions and 2 deletions
  1. +5
    -1
      consume/user_register_for_my_my_fans.go
  2. +4
    -1
      consume/user_register_for_my_my_recommender.go
  3. +3
    -0
      consume/user_register_for_official_consume.go

+ 5
- 1
consume/user_register_for_my_my_fans.go View File

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


+ 4
- 1
consume/user_register_for_my_my_recommender.go View File

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


+ 3
- 0
consume/user_register_for_official_consume.go View File

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


Loading…
Cancel
Save