【网络】消息id打印位置修改

dev_chengFeng
gaoxin 2021-04-27 16:36:48 +08:00
parent 2a107e99cb
commit 3775b6ae86
1 changed files with 8 additions and 4 deletions

View File

@ -596,6 +596,7 @@ public class SocketClient
}
return;
}
bool isDeal = false;
//处理推送消息当序列号比本地游标大1处理推送信息否则不处理
if (dispatchers.ContainsKey(msgId))
{
@ -612,10 +613,7 @@ public class SocketClient
//Debug.LogError("INDICATION_RESPONSE" + msgId);
m_SendMessage(INDICATION_RESPONSE, null, _event.sid);
}
}
else
{
Debug.LogError("*** 后端推送了未注册的 indication 消息:" + msgId);
isDeal = true;
}
//处理请求回应消息
if (callbacks.ContainsKey(msgId))
@ -627,6 +625,12 @@ public class SocketClient
{
UnityEngine.Debug.LogErrorFormat("Failed to process message. msgId : {0}", msgId);
}
isDeal = true;
}
// 没有处理的消息
if(!isDeal && msgId == INDICATION_RESPONSE)
{
Debug.LogError("*** 后端推送了未请求的回调消息或者未注册的 indication 消息:" + msgId);
}
}
public string Error;