Browse Source

update

master
DengBiao 2 years ago
parent
commit
9767eefe03
1 changed files with 5 additions and 7 deletions
  1. +5
    -7
      internal/business/api/business_ext.go

+ 5
- 7
internal/business/api/business_ext.go View File

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


Loading…
Cancel
Save