From d14d972f87b9bf3165fe604a7258270ed69df8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Thu, 15 May 2025 15:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Utility/Utility.Http.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Runtime/Utility/Utility.Http.cs b/Runtime/Utility/Utility.Http.cs index 9fd9fff..648d7a2 100644 --- a/Runtime/Utility/Utility.Http.cs +++ b/Runtime/Utility/Utility.Http.cs @@ -95,19 +95,20 @@ namespace AlicizaX private static void HandleRequestError(UnityWebRequest request, string url) { + ; switch (request.result) { case UnityWebRequest.Result.ConnectionError: - throw new GameFrameworkException($"无法访问地址:{url}"); + Log.Error($"无法访问地址:{url}"); break; case UnityWebRequest.Result.ProtocolError: - throw new GameFrameworkException($"HTTP协议错误 ({request.responseCode}):{url}\n{request.error}"); + Log.Error($"HTTP协议错误 ({request.responseCode}):{url}\n{request.error}"); break; case UnityWebRequest.Result.DataProcessingError: - throw new GameFrameworkException($"数据处理错误:{url}\n{request.error}"); + Log.Error($"数据处理错误:{url}\n{request.error}"); break; default: - throw new GameFrameworkException($"未知网络错误:{url}\n{request.error}"); + Log.Error($"未知网络错误:{url}\n{request.error}"); break; } }