From c183219cb88eea42654e2bbd6751998b174d7905 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 22 Mar 2023 18:40:27 +0800 Subject: [PATCH] update --- internal/business/api/business_ext.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/business/api/business_ext.go b/internal/business/api/business_ext.go index cbe33e8..3d08366 100644 --- a/internal/business/api/business_ext.go +++ b/internal/business/api/business_ext.go @@ -47,12 +47,12 @@ func (s *BusinessExtServer) IsFriends(ctx context.Context, req *pb.IsFriendsReq) return &pb.IsFriendsResp{ User: &pb.User{ - UserId: user.Id, - Nickname: user.Nickname, - Sex: user.Sex, - AvatarUrl: user.AvatarUrl, - MasterId: user.MasterId, - IsAutoAddedFriends: int64(user.IsAutoAddedFriends), + UserId: userFriend.Id, + Nickname: userFriend.Nickname, + Sex: userFriend.Sex, + AvatarUrl: userFriend.AvatarUrl, + MasterId: userFriend.MasterId, + IsAutoAddedFriends: int64(userFriend.IsAutoAddedFriends), }, IsFriend: isFriend, }, err