From 427ca74954126ce0d9aced18752442d064851863 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期日, 06 十二月 2020 14:27:35 +0800
Subject: [PATCH] 20201206

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

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index 22e42b4..aeb874a 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -228,13 +228,14 @@
             function.refreshTime = DateTime.Now;
             DAL.Server.HttpServerRequest httpServer = new DAL.Server.HttpServerRequest();
             //杩滅▼閫氳
-            if (Ins.IsRemote)
+            if (!Ins.IsRemote)
             {
                 //ALink鎺у埗銆丅us鎺у埗浣跨敤鍚屼竴涓帴鍙f帶鍒讹紝鐢变簯绔礋璐hВ鏋�
                 var apiControlData = function.GetApiControlData(commandDictionary);
                 var actionObjs = new List<ApiAlinkControlActionObj>();
                 actionObjs.Add(apiControlData);
-                httpServer.ControlDevice(actionObjs);
+                var pack = httpServer.ControlDevice(actionObjs);
+                MainPage.Log($"{pack.Code}:{pack.Data}");
             }
             //鏈湴閫氳
             else

--
Gitblit v1.8.0