@@ -17,7 +17,7 @@ func Init() { | |||||
// 增加消费任务队列 | // 增加消费任务队列 | ||||
func initConsumes() { | func initConsumes() { | ||||
jobs[consumeMd.UserRegisterConsumeForMyFansFunName] = UserRegisterConsumeForMyFans | |||||
//jobs[consumeMd.UserRegisterConsumeForMyFansFunName] = UserRegisterConsumeForMyFans | |||||
//jobs[consumeMd.UserRegisterConsumeForMyRecommenderFunName] = UserRegisterConsumeForMyRecommender | //jobs[consumeMd.UserRegisterConsumeForMyRecommenderFunName] = UserRegisterConsumeForMyRecommender | ||||
jobs[consumeMd.UserRegisterConsumeForOfficialFunName] = UserRegisterConsumeForOfficial | jobs[consumeMd.UserRegisterConsumeForOfficialFunName] = UserRegisterConsumeForOfficial | ||||
} | } | ||||
@@ -103,7 +103,7 @@ func handleUserRegisterConsumeForMyFans(msgData []byte) error { | |||||
} | } | ||||
gimUserId, err := db2.UserInsert(db.DbIm, &model2.User{ | gimUserId, err := db2.UserInsert(db.DbIm, &model2.User{ | ||||
PhoneNumber: strconv.FormatInt(msg.Phone, 10), | |||||
PhoneNumber: user.Phone, | |||||
Nickname: user.Nickname, | Nickname: user.Nickname, | ||||
AvatarUrl: user.Avatar, | AvatarUrl: user.Avatar, | ||||
Sex: user.Sex, | Sex: user.Sex, | ||||
@@ -102,9 +102,11 @@ func handleUserRegisterConsumeForMyRecommender(msgData []byte) error { | |||||
if err != nil { | if err != nil { | ||||
return err | return err | ||||
} | } | ||||
if user.Nickname == "将军" { | |||||
fmt.Println(user) | |||||
} | |||||
gimUserId, err := db2.UserInsert(db.DbIm, &model.User{ | gimUserId, err := db2.UserInsert(db.DbIm, &model.User{ | ||||
PhoneNumber: strconv.FormatInt(msg.Phone, 10), | |||||
PhoneNumber: user.Phone, | |||||
Nickname: user.Nickname, | Nickname: user.Nickname, | ||||
AvatarUrl: user.Avatar, | AvatarUrl: user.Avatar, | ||||
Sex: user.Sex, | Sex: user.Sex, | ||||
@@ -104,7 +104,7 @@ func handleUserRegisterConsumeForOfficial(msgData []byte) error { | |||||
return nil | return nil | ||||
} | } | ||||
gimUserId, err := gim.UserInsert(db.DbIm, &imModel.User{ | gimUserId, err := gim.UserInsert(db.DbIm, &imModel.User{ | ||||
PhoneNumber: strconv.FormatInt(msg.Phone, 10), | |||||
PhoneNumber: user.Phone, | |||||
Nickname: user.Nickname, | Nickname: user.Nickname, | ||||
AvatarUrl: user.Avatar, | AvatarUrl: user.Avatar, | ||||
Sex: user.Sex, | Sex: user.Sex, | ||||