wei
2020-12-01 8983da138cb92e35b0bbeaece1cf1c454a5a79d4
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控制、Bus控制使用同一个接口控制,由云端负责解析
                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);