From 1c4687098b0232b66f970e4fd59207b75dda3ab4 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 31 Dec 2024 00:25:52 +0800 Subject: [PATCH] update --- consume/init.go | 2 +- consume/user_register_for_my_my_fans.go | 2 +- consume/user_register_for_my_my_recommender.go | 6 ++++-- consume/user_register_for_official_consume.go | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/consume/init.go b/consume/init.go index ddf23c6..d369fed 100644 --- a/consume/init.go +++ b/consume/init.go @@ -17,7 +17,7 @@ func Init() { // 增加消费任务队列 func initConsumes() { - jobs[consumeMd.UserRegisterConsumeForMyFansFunName] = UserRegisterConsumeForMyFans + //jobs[consumeMd.UserRegisterConsumeForMyFansFunName] = UserRegisterConsumeForMyFans //jobs[consumeMd.UserRegisterConsumeForMyRecommenderFunName] = UserRegisterConsumeForMyRecommender jobs[consumeMd.UserRegisterConsumeForOfficialFunName] = UserRegisterConsumeForOfficial } diff --git a/consume/user_register_for_my_my_fans.go b/consume/user_register_for_my_my_fans.go index e5de2a7..9673ba0 100644 --- a/consume/user_register_for_my_my_fans.go +++ b/consume/user_register_for_my_my_fans.go @@ -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, diff --git a/consume/user_register_for_my_my_recommender.go b/consume/user_register_for_my_my_recommender.go index e388f39..dbb806e 100644 --- a/consume/user_register_for_my_my_recommender.go +++ b/consume/user_register_for_my_my_recommender.go @@ -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, diff --git a/consume/user_register_for_official_consume.go b/consume/user_register_for_official_consume.go index 0e56e38..a5def55 100644 --- a/consume/user_register_for_official_consume.go +++ b/consume/user_register_for_official_consume.go @@ -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,