From 2ebd302f5ca3d6f9b5a80ecd2c214d07929b3955 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期六, 28 八月 2021 13:44:17 +0800
Subject: [PATCH] 2021-8-28-02

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
index 2b40f4b..0ab9c3b 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
@@ -438,7 +438,6 @@
                             }
                         case SPK.AcStandard:
                         case SPK.FloorHeatStandard:
-                        case SPK.AirFreshStandard:
                             {
                                 //鍋氫簡涓�涓壒娈婂鐞嗭紱
                                 bool _bool = false;
@@ -462,6 +461,38 @@
                                 }
                             }
                             break;
+                        case SPK.AirFreshStandard:
+                            {
+                                //鍋氫簡涓�涓壒娈婂鐞嗭紱
+                                bool _bool = false;
+                                for (int i = 0; i < dicSateteList.Count; i++)
+                                {
+                                    var dic = dicSateteList[i];
+                                    if (dic.ContainsValue("on_off"))
+                                    {
+                                        if (dic["on_off"] == "on")
+                                        {
+                                            //鍒ゆ柇鏄惁瀛樺湪涓旀槸寮�鐘舵��
+                                            _bool = true;
+                                            break;
+                                        }
+                                    }
+                                }
+                              
+                                if (!_bool)
+                                {
+                                    //濡傛灉鏂伴鍚湁寮�鍏冲睘鎬т笖鏄叧=鐘舵�侊紱
+                                    //娓呯┖鍒楄〃鎵�鏈夋暟鎹紝閲嶆柊鍗曠嫭閰嶇疆涓�涓紑鍏冲睘鎬т笖鏄叧=鐘舵�侊紱
+                                    //(鏂伴灞炴�ф槸鍗曠嫭鎺у埗鐨�,濡傛灉閰嶇疆鍏筹紝鍐嶉厤缃竴涓閫燂紝椋庨�熶竴鏍锋墽琛�)
+                                    dicSateteList.Clear();
+                                    //娌℃湁寮�鍏冲氨榛樿娣诲姞-寮�-灞炴��
+                                    Dictionary<string, string> diction = new Dictionary<string, string>();
+                                    diction.Add("key", "on_off");
+                                    diction.Add("value", "off");
+                                    dicSateteList.Add(diction);
+                                }
+                            }
+                            break;
                     }
                     outputDevice.status = dicSateteList;
 

--
Gitblit v1.8.0