From 3532db3610381f37eca1a6ac783d882517847c91 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 31 三月 2021 15:28:49 +0800 Subject: [PATCH] Merge branch 'WJC' into temp-wxr --- HDL_ON/DAL/Server/HttpServerRequest.cs | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 288ddf1..e08a283 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -480,6 +480,7 @@ IsOthreShare = mHome.IsOtherShare, accountType = mHome.accountType, isRemoteControl = mHome.isRemoteControl, + isBindGateway = mHome.isBindGateway, longitude = mHome.longitude, latitude = mHome.latitude, deliverstatus = mHome.deliverstatus, @@ -491,7 +492,19 @@ Address = mHome.homeAddress, isAllowCreateScene = mHome.isAllowCreateScene, }; +#if DEBUG + UserInfo.Current.regionList.Add(home); + continue; +#endif + if (home.isBindGateway) + { + UserInfo.Current.regionList.Add(home); + } + } + if(UserInfo.Current.regionList.Count== 0) + { + return "null"; } //-------濡傛灉璐﹀彿鏄娆$櫥褰� if (DB_ResidenceData.Instance.CurrentRegion == null || string.IsNullOrEmpty(DB_ResidenceData.Instance.CurrentRegion.RegionID)) -- Gitblit v1.8.0