Ver código fonte

update

master
DengBiao 2 anos atrás
pai
commit
0c88d28de5
1 arquivos alterados com 5 adições e 0 exclusões
  1. +5
    -0
      internal/logic/domain/friend/friend_service.go

+ 5
- 0
internal/logic/domain/friend/friend_service.go Ver arquivo

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


Carregando…
Cancelar
Salvar