Merge branch 'china/dev-c' of http://60.1.1.230/gaoxin/JL_Client into china/dev-c

dev_chengFeng
ZhangBiao 2021-04-27 16:46:50 +08:00
commit c88bda25c7
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;