From f534d41c36d5895322bf691784a10435b64609fe Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 25 十二月 2020 13:52:00 +0800
Subject: [PATCH] 修复添加、删除楼层时候,界面刷新异常问题

---
 HDL_ON/DAL/DriverLayer/Control.cs |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index 861a54d..c7e2314 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -342,14 +342,14 @@
         public void SwtichFunctions(bool open,List<Function> functions)
         {
             var count = 0;
-            var logString = open ? "鎵撳紑" : "鍏抽棴";
+            var logString = open ? "鎵撳紑\r\n" : "鍏抽棴\r\n";
             List<ApiAlinkControlActionObj> actionObjs = new List<ApiAlinkControlActionObj>();
             Dictionary<string, string> d = new Dictionary<string, string>();
             d.Add(FunctionAttributeKey.OnOff, open ? "on" : "off");
             var pm = new DAL.Server.HttpServerRequest();
             foreach (var temp in functions)
             {
-                logString += temp.spk + ":" + temp.sid;
+                logString += temp.spk + ":" + temp.sid + "\r\n";
                 var apiControlData = temp.GetApiControlData(d);
                 actionObjs.Add(apiControlData);
                 count++;
@@ -442,8 +442,16 @@
         {
             if (Ins.IsRemote)
             {
-                var pm = new DAL.Server.HttpServerRequest();
-                var result = pm.ExecuteScene(scene.userSceneId);
+                //浜戠鍋氬鐞嗗彂閫佷竴绔彛鍦烘櫙
+                //if (DB_ResidenceData.Instance.GatewayType == 0)
+                //{
+                //    new Control_Udp().ControlBusScenes(scene);
+                //}
+                //else
+                {
+                    var pm = new DAL.Server.HttpServerRequest();
+                    var result = pm.ExecuteScene(scene.userSceneId);
+                }
             }
             else
             {

--
Gitblit v1.8.0