Browse Source

update

master
DengBiao 2 years ago
parent
commit
0c88d28de5
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      internal/logic/domain/friend/friend_service.go

+ 5
- 0
internal/logic/domain/friend/friend_service.go View File

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


Loading…
Cancel
Save