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