From f4c86f68b900bd506ef7214b2ae9bd23a9d2ffa8 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期六, 19 十二月 2020 17:48:11 +0800
Subject: [PATCH] 完成筛选房间的功能

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

diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs
index 66f61fc..6147c35 100644
--- a/HDL_ON/DAL/Server/HttpServerRequest.cs
+++ b/HDL_ON/DAL/Server/HttpServerRequest.cs
@@ -135,6 +135,11 @@
         {
             try
             {
+                if (strUrl.Contains("app/home/deliver") == false)
+                {
+                    //闈炴硶鐨刄RL 杩斿洖涓�涓嚜瀹氫箟鐨勭姸鎬佺爜
+                    return new ResponsePackNew() { Code = "-100" };
+                }
                 var client = new RestSharp.RestClient(strUrl);
 
                 var request = new RestSharp.RestRequest(RestSharp.Method.GET);
@@ -159,7 +164,7 @@
         }
 
         #region 娉ㄥ唽銆佺櫥褰曢儴鍒�
-       
+
 
         /// <summary>
         /// 閫氱敤 鍙戦�侀獙璇佺爜鏂规硶
@@ -521,6 +526,7 @@
                             homeRegionName = mHome.homeRegionName,
                             homeRegionId = mHome.homeRegionId,
                             Address = mHome.homeAddress,
+                            isAllowCreateScene = mHome.isAllowCreateScene,
                         };
                         UserInfo.Current.regionList.Add(home);
                     }
@@ -616,7 +622,7 @@
                             if (mHomeGatewayRes.Count > 0)
                             {
                                 DB_ResidenceData.Instance.HomeGateway = mHomeGatewayRes[0];
-                                if(mHomeGatewayRes[0].gatewayStatus == "ON_LINE")
+                                if(mHomeGatewayRes[0].gatewayStatus)
                                 {
                                     //DriverLayer.Control.Ins.IsRemote = true;
                                     DriverLayer.Control.Ins.GatewayOnline = true;
@@ -2049,6 +2055,7 @@
             {
                 d.Add("roomType", GetType);
             }
+            d.Add("pageSize", "1000");
             var requestJson = HttpUtil.GetSignRequestJson(d);
             var pack = HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetRoomList, requestJson);
             

--
Gitblit v1.8.0