|
@@ -3,6 +3,7 @@ package friend |
|
|
import ( |
|
|
import ( |
|
|
"context" |
|
|
"context" |
|
|
svc "gim/internal/business/comm/service" |
|
|
svc "gim/internal/business/comm/service" |
|
|
|
|
|
"gim/internal/business/comm/utils" |
|
|
"gim/internal/logic/proxy" |
|
|
"gim/internal/logic/proxy" |
|
|
"gim/pkg/gerrors" |
|
|
"gim/pkg/gerrors" |
|
|
"gim/pkg/grpclib" |
|
|
"gim/pkg/grpclib" |
|
@@ -178,6 +179,10 @@ func (*friendService) SendToFriend(ctx context.Context, sender *pb.Sender, req * |
|
|
return 0, gerrors.ErrNotIsFriend |
|
|
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) |
|
|
seq, err := proxy.MessageProxy.SendToUser(ctx, sender, sender.SenderId, req) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|