From 3afb57a4356c06f13835f891bcfdb349cb835306 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 20 Dec 2022 19:25:00 +0800 Subject: [PATCH] update push --- internal/logic/api/logic_ext.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/logic/api/logic_ext.go b/internal/logic/api/logic_ext.go index 84b727a..6a433ab 100644 --- a/internal/logic/api/logic_ext.go +++ b/internal/logic/api/logic_ext.go @@ -2,6 +2,7 @@ package api import ( "context" + "gim/internal/business/comm/utils" "gim/internal/logic/app" "gim/pkg/grpclib" "gim/pkg/pb" @@ -36,6 +37,9 @@ func (*LogicExtServer) SendMessage(ctx context.Context, in *pb.SendMessageReq) ( SenderId: userId, DeviceId: deviceId, } + utils.FilePutContents("sendMessage", utils.SerializeStr(map[string]interface{}{ + "data": sender, + })) seq, err := app.MessageApp.SendMessage(ctx, &sender, in) if err != nil { return nil, err