From f23ad1b3f9f6193f35f72104d690b21dc67d5c1f Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 06 七月 2020 12:35:25 +0800
Subject: [PATCH] 去掉了访问外网的异步

---
 ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs |   26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs
index a893a4a..fd74126 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs
@@ -41,6 +41,25 @@
                             }
 
                         }
+                        else if (common.Type == DeviceType.IASZone)
+                        {
+                            var iASZonedevice = common as IASZone;
+                            if (iASZonedevice.IasDeviceType == 541)
+                            {//鐞冨舰绉诲姩浼犳劅鍣�
+                                if (Common.Logic.CurrentLogic.Conditions[i]["Cluster_ID"] == objecttype["Cluster_ID"])
+                                {
+                                    Common.Logic.CurrentLogic.Conditions.RemoveAt(i);
+                                    Common.Logic.CurrentLogic.Conditions.Insert(i, objecttype);
+                                    return;
+                                }
+                                continue;
+                            }
+
+                            Common.Logic.CurrentLogic.Conditions.RemoveAt(i);
+                            Common.Logic.CurrentLogic.Conditions.Insert(i, objecttype);
+                            return;
+
+                        }
                         else
                         {
                             Common.Logic.CurrentLogic.Conditions.RemoveAt(i);
@@ -187,8 +206,7 @@
         /// <summary>
         /// 娣诲姞瀹夐槻杈撳嚭鐨勬柟娉�
         /// </summary>
-        /// <param name="objecttype">Objecttype.</param>
-        /// <param name="o">O.</param>
+        /// <param name="actionsInfo">actionsInfo.</param>
         public static void AddSecurityactions(Dictionary<string, object> actionsInfo)
         {
             for (int i = 0; i < Common.Logic.CurrentLogic.Actions.Count; i++)
@@ -206,8 +224,8 @@
         /// <summary>
         /// 娣诲姞鑷姩鍖栬緭鍑虹殑鏂规硶
         /// </summary>
-        /// <param name="objecttype">Objecttype.</param>
-        /// <param name="o">O.</param>
+        /// <param name="actionsInfo">Objecttype.</param>
+        /// <param name="logic">logic</param>
         public static void AddLogicactions(Common.Logic logic, Dictionary<string, object> actionsInfo)
         {
 

--
Gitblit v1.8.0