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