From 368286f11f96449d28e9c6e4aae1448b40ece038 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Thu, 21 Sep 2023 16:38:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/net/net_manager.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/app/net/net_manager.lua b/lua/app/net/net_manager.lua index db714fbb..822ecd68 100644 --- a/lua/app/net/net_manager.lua +++ b/lua/app/net/net_manager.lua @@ -774,7 +774,8 @@ function NetManager:onReceive(msgId, data) end end BIReport:postPbDecodefailed(sendMsgName, reqDataStr) - elseif pbData.err_code ~= GConst.ERROR_STR.SUCCESS then + -- elseif pbData.err_code ~= GConst.ERROR_STR.SUCCESS then + elseif pbData.status ~= 0 then -- 有一些协议没有err_code所以改为判定自定义的status local reqDataStr = GConst.EMPTY_STRING if sendInfo then if sendInfo.msgName == ProtoMsgType.FromMsgEnum.PipedReq then