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 |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs
index 6d7fd6a..4e68b34 100644
--- a/HDL_ON/DAL/Server/HttpServerRequest.cs
+++ b/HDL_ON/DAL/Server/HttpServerRequest.cs
@@ -492,11 +492,16 @@
                             Address = mHome.homeAddress,
                             isAllowCreateScene = mHome.isAllowCreateScene,
                         };
+
                         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