瀏覽代碼

update

three
DengBiao 1 年之前
父節點
當前提交
adfb9267bf
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      consume/dou_shen_user_register_for_official_consume.go

+ 3
- 3
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系统")


Loading…
取消
儲存