From a32815a15cc63e8aca23d095435c916bb7bd304d Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 01 四月 2021 09:09:25 +0800
Subject: [PATCH] 2021-4-1-1

---
 HDL_ON/DAL/Server/HttpServerRequest.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs
index 288ddf1..4e68b34 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,15 @@
                             Address = mHome.homeAddress,
                             isAllowCreateScene = mHome.isAllowCreateScene,
                         };
-                        UserInfo.Current.regionList.Add(home);
+
+                        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