From 70b326ff072a4f80bd5fa798ff8f33af486beaba Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Mon, 25 Oct 2021 20:36:11 +0800 Subject: [PATCH] pb file --- src/msg_gateway/gate/logic.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/msg_gateway/gate/logic.go b/src/msg_gateway/gate/logic.go index 2781e90e5..559a774e6 100644 --- a/src/msg_gateway/gate/logic.go +++ b/src/msg_gateway/gate/logic.go @@ -112,7 +112,11 @@ func (ws *WServer) pullMsgResp(conn *UserConn, m *Req, pb *pbChat.PullMessageRes if err != nil { log.NewError(m.OperationID, "SingleUserMsg,json Unmarshal,err", err.Error()) } - c, _ := proto.Marshal(&mReplyData) + + c, err := proto.Marshal(&mReplyData) + if err != nil { + log.NewError(m.OperationID, "mReplyData,json marshal,err", err.Error()) + } mReply := Resp{ ReqIdentifier: m.ReqIdentifier, MsgIncr: m.MsgIncr,