Browse Source

更新

one_orenge
huangjiajun 8 months ago
parent
commit
492dd66a74
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      consume/dou_shen_user_register_for_operation_center.go

+ 6
- 0
consume/dou_shen_user_register_for_operation_center.go View File

@@ -88,10 +88,16 @@ func handleDouShenUserRegisterConsumeForOperationCenter(msgData []byte) error {
if err != nil { if err != nil {
return err return err
} }
if user == nil {
return nil
}
userProfile, err := db.UserProfileFindByID(db.DBs[msg.MasterId], user.Uid) userProfile, err := db.UserProfileFindByID(db.DBs[msg.MasterId], user.Uid)
if err != nil { if err != nil {
return err return err
} }
if userProfile == nil {
return nil
}
gimUserId, err := db2.UserInsert(db.ImDb, &model.User{ gimUserId, err := db2.UserInsert(db.ImDb, &model.User{
PhoneNumber: strconv.FormatInt(msg.Phone, 10), PhoneNumber: strconv.FormatInt(msg.Phone, 10),
Nickname: user.Nickname, Nickname: user.Nickname,


Loading…
Cancel
Save