|
|
@@ -51,13 +51,11 @@ func (s *BusinessExtServer) GetUser(ctx context.Context, req *pb.GetUserReq) (*p |
|
|
|
useInfo, err := repo.UserRepo.GetByPhoneNumber(req.Phone, utils.StrToInt64(masterId)) |
|
|
|
user = &pb.User{ |
|
|
|
UserId: useInfo.Id, |
|
|
|
Nickname: user.Nickname, |
|
|
|
Sex: user.Sex, |
|
|
|
AvatarUrl: user.AvatarUrl, |
|
|
|
CreateTime: user.CreateTime, |
|
|
|
UpdateTime: user.UpdateTime, |
|
|
|
MasterId: user.MasterId, |
|
|
|
IsAutoAddedFriends: user.IsAutoAddedFriends, |
|
|
|
Nickname: useInfo.Nickname, |
|
|
|
Sex: useInfo.Sex, |
|
|
|
AvatarUrl: useInfo.AvatarUrl, |
|
|
|
MasterId: useInfo.MasterId, |
|
|
|
IsAutoAddedFriends: int64(useInfo.IsAutoAddedFriends), |
|
|
|
} |
|
|
|
} else { |
|
|
|
userId, _, err := grpclib.GetCtxData(ctx) |
|
|
|