From 9f2d1de6643eefe5467cac9c9f540a79d50b1ba7 Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Fri, 04 Dec 2020 11:09:48 +0800 Subject: [PATCH] 增加http请求失败判断 --- Assets/Scripts/UI/FinalPanel/FinalHttp.cs | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/Assets/Scripts/UI/FinalPanel/FinalHttp.cs b/Assets/Scripts/UI/FinalPanel/FinalHttp.cs index 4df791c..81a9370 100644 --- a/Assets/Scripts/UI/FinalPanel/FinalHttp.cs +++ b/Assets/Scripts/UI/FinalPanel/FinalHttp.cs @@ -27,7 +27,7 @@ } else if (Application.platform == RuntimePlatform.WindowsEditor) { - GameConfig.Imei = "MyTestGemBattle123"; + GameConfig.Imei = "MyTestGemBattle1233333"; } Debug.Log("设置imei0:" + GameConfig.Imei); } @@ -56,6 +56,11 @@ { if (value != null) LoadPostTxt(value.ToString()); + else + { + Debug.LogError("连接错误"); + callBack?.Invoke(null, 0); + } }, HttpHelper.DownloadHanlderType.kHttpTEXT); @@ -90,6 +95,11 @@ { if (value != null) LoadGetTxt(value.ToString()); + else + { + Debug.LogError("连接错误"); + callBack?.Invoke(null, 0); + } }, HttpHelper.DownloadHanlderType.kHttpTEXT); } -- Gitblit v1.9.1