From 026ed1573ad8b9ba28f0e2c0bf0c9cd85f1dd2ed Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 02 十二月 2020 16:32:00 +0800
Subject: [PATCH] 2020-12-02 1.增加子账号设备分享。 2.房间删除时间优化。3.消息中心接口对接。4.版本检测更新接口对接。

---
 HDL_ON/DAL/DriverLayer/Control.cs |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index a2c52c7..bdf87b9 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -199,19 +199,15 @@
         {
             function.usageCount++;
             function.refreshTime = DateTime.Now;
+            DAL.Server.HttpServerRequest httpServer = new DAL.Server.HttpServerRequest();
             //杩滅▼閫氳
             if (Ins.IsRemote)
             {
-                //ALink鎺у埗
-                if (DB_ResidenceData.residenceData.GatewayType == 0)
-                {
-
-                }
-                //Bus鎺у埗
-                else
-                {
-
-                }
+                //ALink鎺у埗銆丅us鎺у埗浣跨敤鍚屼竴涓帴鍙f帶鍒讹紝鐢变簯绔礋璐hВ鏋�
+                var apiControlData = function.GetApiControlData(commandDictionary);
+                var actionObjs = new List<ApiAlinkControlActionObj>();
+                actionObjs.Add(apiControlData);
+                httpServer.ControlDevice(actionObjs);
             }
             //鏈湴閫氳
             else
@@ -236,7 +232,7 @@
                 {
                     if (myUdp != null)
                     {
-                        var functionControlDataObj = function.GetControlSendData(commandDictionary);
+                        var functionControlDataObj = function.GetGatewayAlinkControlData(commandDictionary);
                         var functionControlDataJson = Newtonsoft.Json.JsonConvert.SerializeObject(functionControlDataObj);
                         var sendBytes = Ins.ConvertSendBodyData(CommunicationTopic.ct.ControlFunctionTopic, functionControlDataJson);
                         myUdp.SendLocalHdlLinkData(sendBytes);

--
Gitblit v1.8.0