dengbiao 3 dagar sedan
förälder
incheckning
1c4687098b
4 ändrade filer med 7 tillägg och 5 borttagningar
  1. +1
    -1
      consume/init.go
  2. +1
    -1
      consume/user_register_for_my_my_fans.go
  3. +4
    -2
      consume/user_register_for_my_my_recommender.go
  4. +1
    -1
      consume/user_register_for_official_consume.go

+ 1
- 1
consume/init.go Visa fil

@@ -17,7 +17,7 @@ func Init() {

// 增加消费任务队列
func initConsumes() {
jobs[consumeMd.UserRegisterConsumeForMyFansFunName] = UserRegisterConsumeForMyFans
//jobs[consumeMd.UserRegisterConsumeForMyFansFunName] = UserRegisterConsumeForMyFans
//jobs[consumeMd.UserRegisterConsumeForMyRecommenderFunName] = UserRegisterConsumeForMyRecommender
jobs[consumeMd.UserRegisterConsumeForOfficialFunName] = UserRegisterConsumeForOfficial
}


+ 1
- 1
consume/user_register_for_my_my_fans.go Visa fil

@@ -103,7 +103,7 @@ func handleUserRegisterConsumeForMyFans(msgData []byte) error {
}

gimUserId, err := db2.UserInsert(db.DbIm, &model2.User{
PhoneNumber: strconv.FormatInt(msg.Phone, 10),
PhoneNumber: user.Phone,
Nickname: user.Nickname,
AvatarUrl: user.Avatar,
Sex: user.Sex,


+ 4
- 2
consume/user_register_for_my_my_recommender.go Visa fil

@@ -102,9 +102,11 @@ func handleUserRegisterConsumeForMyRecommender(msgData []byte) error {
if err != nil {
return err
}

if user.Nickname == "将军" {
fmt.Println(user)
}
gimUserId, err := db2.UserInsert(db.DbIm, &model.User{
PhoneNumber: strconv.FormatInt(msg.Phone, 10),
PhoneNumber: user.Phone,
Nickname: user.Nickname,
AvatarUrl: user.Avatar,
Sex: user.Sex,


+ 1
- 1
consume/user_register_for_official_consume.go Visa fil

@@ -104,7 +104,7 @@ func handleUserRegisterConsumeForOfficial(msgData []byte) error {
return nil
}
gimUserId, err := gim.UserInsert(db.DbIm, &imModel.User{
PhoneNumber: strconv.FormatInt(msg.Phone, 10),
PhoneNumber: user.Phone,
Nickname: user.Nickname,
AvatarUrl: user.Avatar,
Sex: user.Sex,


Laddar…
Avbryt
Spara