From 8c6f7113f6aaa9d1fe74405070f3892886ebd156 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 17 三月 2023 17:21:06 +0800 Subject: [PATCH] 修复创景梦幻帘角度信息显示闪退问题 --- HDL_ON/DAL/Server/HttpServerRequest.cs | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 7d4034e..585b717 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -544,6 +544,14 @@ var homeList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<RegionInfoRes>>(resultObj.Data.ToString()); if (homeList == null || homeList.Count == 0) { + if (DB_ResidenceData.Instance.CurrentRegion.id != "") + { + DB_ResidenceData.Instance.CurrentRegion = null; + Shared.Application.RunOnMainThread(() => + { + MainPage.GoUserPage(false); + }); + } } else { @@ -564,6 +572,10 @@ } if (UserInfo.Current.regionList.Count == 0) { + Shared.Application.RunOnMainThread(() => + { + MainPage.GoUserPage(false); + }); return "null"; } //-------濡傛灉璐﹀彿鏄娆$櫥褰� -- Gitblit v1.8.0