mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update Demo
Update Demo
This commit is contained in:
@@ -4,12 +4,18 @@ namespace GameLogic
|
||||
{
|
||||
public class NetworkUtils
|
||||
{
|
||||
/// <summary>
|
||||
/// 网络消息校验错误码。
|
||||
/// </summary>
|
||||
/// <param name="response">网络回复消息包。</param>
|
||||
/// <returns>是否存在错误。</returns>
|
||||
public static bool CheckError(IResponse response)
|
||||
{
|
||||
bool hasError = false;
|
||||
if (response == null)
|
||||
{
|
||||
var networkError = "NetWork Response Error";
|
||||
// TODO 根据错误码Tips提示。
|
||||
// var networkError = "NetWork Response Error";
|
||||
hasError = true;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user