From 0c88d28de56fc90da3d2e3f271c168fda4db2020 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 20 Dec 2022 19:19:38 +0800 Subject: [PATCH] update --- internal/logic/domain/friend/friend_service.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/logic/domain/friend/friend_service.go b/internal/logic/domain/friend/friend_service.go index ab79ce1..242aeb9 100644 --- a/internal/logic/domain/friend/friend_service.go +++ b/internal/logic/domain/friend/friend_service.go @@ -3,6 +3,7 @@ package friend import ( "context" svc "gim/internal/business/comm/service" + "gim/internal/business/comm/utils" "gim/internal/logic/proxy" "gim/pkg/gerrors" "gim/pkg/grpclib" @@ -178,6 +179,10 @@ func (*friendService) SendToFriend(ctx context.Context, sender *pb.Sender, req * return 0, gerrors.ErrNotIsFriend } + utils.FilePutContents("sendToFriend", utils.SerializeStr(map[string]interface{}{ + "send": sender, + "req": req, + })) // 发给发送者 seq, err := proxy.MessageProxy.SendToUser(ctx, sender, sender.SenderId, req) if err != nil {