From 351178048dc8419f0c7ea0c95990033ec5e5cd4a Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 5 May 2023 16:46:32 +0800 Subject: [PATCH] update --- internal/logic/domain/friend/friend_service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/logic/domain/friend/friend_service.go b/internal/logic/domain/friend/friend_service.go index a2b504a..8bc52d6 100644 --- a/internal/logic/domain/friend/friend_service.go +++ b/internal/logic/domain/friend/friend_service.go @@ -177,19 +177,19 @@ func (*friendService) AgreeAddFriend(ctx context.Context, userId, friendId int64 return err } - resp, err := rpc.GetBusinessIntClient().GetUser(ctx, &pb.GetUserReq{UserId: friendId}) + resp, err := rpc.GetBusinessIntClient().GetUser(ctx, &pb.GetUserReq{UserId: userId}) if err != nil { return err } err = proxy.MessageProxy.PushToUser(ctx, friendId, pb.PushCode_PC_AGREE_ADD_FRIEND, &pb.AgreeAddFriendPush{ - FriendId: friendId, + FriendId: userId, Nickname: resp.User.Nickname, AvatarUrl: resp.User.AvatarUrl, }, true) utils.FilePutContents("push_AgreeAddFriend", utils.SerializeStr(map[string]interface{}{ - "friend_id": friendId, + "friend_id": userId, "friend_nick_name": resp.User.Nickname, "friend_avatar_url": resp.User.AvatarUrl, "err": err,