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