From adfb9267bfeb85c62b65e96b8f48ad1f90141fa3 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 6 Jun 2023 20:19:17 +0800 Subject: [PATCH] update --- consume/dou_shen_user_register_for_official_consume.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consume/dou_shen_user_register_for_official_consume.go b/consume/dou_shen_user_register_for_official_consume.go index 7de68c1..ab1e1ae 100644 --- a/consume/dou_shen_user_register_for_official_consume.go +++ b/consume/dou_shen_user_register_for_official_consume.go @@ -88,7 +88,7 @@ func handleDouShenUserRegisterConsumeForOfficial(msgData []byte) error { return err } - gimUserId, err := db2.UserInsert(db.ImDb, &model2.User{ + _, err = db2.UserInsert(db.ImDb, &model2.User{ PhoneNumber: strconv.FormatInt(msg.Phone, 10), Nickname: user.Nickname, AvatarUrl: userProfile.AvatarUrl, @@ -102,8 +102,8 @@ func handleDouShenUserRegisterConsumeForOfficial(msgData []byte) error { return err } gimUser, err := db2.UserGetOneByParams(db.ImDb, msg.MasterId, map[string]interface{}{ - "key": "id", - "value": gimUserId, + "key": "phone_number", + "value": msg.Phone, }) if gimUser == nil { return errors.New("用户暂未注册im系统")