From 9767eefe03eb6b5664189023d7293c2e3f528e9d Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 8 Dec 2022 18:17:00 +0800 Subject: [PATCH] update --- internal/business/api/business_ext.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/internal/business/api/business_ext.go b/internal/business/api/business_ext.go index b52eb67..1e46566 100644 --- a/internal/business/api/business_ext.go +++ b/internal/business/api/business_ext.go @@ -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)