|
@@ -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, |
|
|