From 6c26794cefc555b6e695fc9e8ac7a247441ac455 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 16 十二月 2020 19:27:00 +0800
Subject: [PATCH] 2020-12-16 1.bus_Data改成bus。2.成员屏蔽设备和房间的编辑功能。

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

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index 33a81c0..da0c9d2 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -77,7 +77,12 @@
                     if (value)
                     {
                         MainPage.Log($"缃戝叧鍦ㄧ嚎锛屽埛鏂拌澶囩姸鎬�");
-                        FunctionList.List.ReadAllFunctionStatus();
+                        new System.Threading.Thread(() =>
+                        {
+                            System.Threading.Thread.Sleep(1000);
+                            FunctionList.List.ReadAllFunctionStatus();
+                        })
+                        { IsBackground = true, Priority = System.Threading.ThreadPriority.AboveNormal }.Start();
                     }
                 }
             }
@@ -239,10 +244,11 @@
         {
             function.usageCount++;
             function.refreshTime = DateTime.Now;
-            DAL.Server.HttpServerRequest httpServer = new DAL.Server.HttpServerRequest();
+          
             //杩滅▼閫氳
             if (Ins.IsRemote)
             {
+                DAL.Server.HttpServerRequest httpServer = new DAL.Server.HttpServerRequest();
                 //ALink鎺у埗銆丅us鎺у埗浣跨敤鍚屼竴涓帴鍙f帶鍒讹紝鐢变簯绔礋璐hВ鏋�
                 var apiControlData = function.GetApiControlData(commandDictionary);
                 var actionObjs = new List<ApiAlinkControlActionObj>();
@@ -363,7 +369,7 @@
             else
             {
                 Dictionary<string, string> keys = new Dictionary<string, string>();
-                keys.Add("sid", scene.userSceneId);
+                keys.Add("sid", scene.sid);
                 var aLinkData = new AlinkReadFunctionStatusObj()
                 {
                     id = Ins.msg_id.ToString(),

--
Gitblit v1.8.0