From fe2b566c8d9c097d2568ad211088fa5bc6f8c229 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 23 三月 2021 13:48:25 +0800
Subject: [PATCH] 2.增加住宅绑定网关判断,没有绑定网关的住宅,ON+不再显示

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

diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs
index 288ddf1..6d7fd6a 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,10 @@
                             Address = mHome.homeAddress,
                             isAllowCreateScene = mHome.isAllowCreateScene,
                         };
-                        UserInfo.Current.regionList.Add(home);
+                        if (home.isBindGateway)
+                        {
+                            UserInfo.Current.regionList.Add(home);
+                        }
                     }
                     //-------濡傛灉璐﹀彿鏄娆$櫥褰�
                     if (DB_ResidenceData.Instance.CurrentRegion == null || string.IsNullOrEmpty(DB_ResidenceData.Instance.CurrentRegion.RegionID))

--
Gitblit v1.8.0