From e12a799460d514261d9317d42008448f0ea470ee Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 17 三月 2023 14:35:48 +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