diff --git a/Assets/LuaFramework/Scripts/Network/SocketClient.cs b/Assets/LuaFramework/Scripts/Network/SocketClient.cs index 31eda99ca9..1e877bc1d6 100644 --- a/Assets/LuaFramework/Scripts/Network/SocketClient.cs +++ b/Assets/LuaFramework/Scripts/Network/SocketClient.cs @@ -574,9 +574,7 @@ public class SocketClient int msgId = _event.msgId; ByteBuffer msg = _event.msg; - //Debug.LogError("msgId:" + msgId); - //Debug.LogError("m_indicationSid:" + m_indicationSid); - //Debug.LogError("sid:" + _event.sid); + //处理心跳包回调 if (msgId == 1001) @@ -600,6 +598,9 @@ public class SocketClient //处理推送消息,当序列号比本地游标大1,处理推送信息,否则不处理 if (dispatchers.ContainsKey(msgId)) { + Debug.LogError("msgId:" + msgId); + Debug.LogError("m_indicationSid:" + m_indicationSid); + Debug.LogError("sid:" + _event.sid); if (m_indicationSid == _event.sid - 1) { m_indicationSid++; @@ -635,7 +636,7 @@ public class SocketClient // 回复未监听的消息 if (m_indicationSid == _event.sid - 1) { - m_indicationSid++; + //m_indicationSid++; } if (_event.sid <= m_indicationSid) {