From ed25f1dd70fb96ee181c8c2e53c7d57a3412afbe Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 01 二月 2021 19:05:16 +0800
Subject: [PATCH] 1

---
 HDL_ON/DAL/DriverLayer/Control.cs |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
old mode 100755
new mode 100644
index 089f706..91f0f1b
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -381,6 +381,30 @@
             var pm = new DAL.Server.HttpServerRequest();
             var pack = pm.RefreshDeviceStatus(functionIds);
         }
+        /// <summary>
+        /// 璇诲彇鍔熻兘璇︾粏鏁版嵁
+        /// </summary>
+        /// <param name="functionIds"></param>
+        public void ReadFunctionsInfo(List<string> functionIds)
+        {
+            var pm = new DAL.Server.HttpServerRequest();
+            var pack = pm.GetDeviceInfoList(functionIds);
+            if(pack!= null&& pack.Data!=null)
+            {
+                var ddd = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Function>>(pack.Data.ToString());
+                if(ddd!= null)
+                {
+                    foreach(var function in ddd)
+                    {
+                        var temp = FunctionList.List.GetDeviceFunctionList().Find((obj) => obj.deviceId == function.deviceId);
+                        if(temp!= null)
+                        {
+                            temp = function;
+                        }
+                    }
+                }
+            }
+        }
 
         /// <summary>
         /// 鍙戦�佽鍙栧懡浠�
@@ -880,6 +904,7 @@
                                 case SPK.ElectricTuyaAirCleaner:
                                 case SPK.ElectricTuyaFan:
                                 case SPK.ElectricTuyaWeepRobot:
+                                case SPK.ElectricTuyaWaterValve:
                                     //璁惧鐘舵�佹帹閫�
                                     var myDevice = Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(updateTemp);
                                     if (myDevice != null)

--
Gitblit v1.8.0