using TEngine.Core.Network; namespace GameLogic { public class NetworkUtils { /// /// 网络消息校验错误码。 /// /// 网络回复消息包。 /// 是否存在错误。 public static bool CheckError(IResponse response) { bool hasError = false; if (response == null) { // TODO 根据错误码Tips提示。 // var networkError = "NetWork Response Error"; hasError = true; } else { hasError = response.ErrorCode != 0; } return hasError; } } }