From c1cb2d8c6034a2ee7aa8a5710bba15b14f76cebc Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 18 八月 2023 18:54:31 +0800
Subject: [PATCH] 2023年08月18日18:54:22

---
 HDL_ON/Entity/Function/SecurityAlarm.cs |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/HDL_ON/Entity/Function/SecurityAlarm.cs b/HDL_ON/Entity/Function/SecurityAlarm.cs
index fa1a558..1ddb0b9 100644
--- a/HDL_ON/Entity/Function/SecurityAlarm.cs
+++ b/HDL_ON/Entity/Function/SecurityAlarm.cs
@@ -336,6 +336,7 @@
                     }
                     break;
                 case SPK.SensorPir:
+                case SPK.SensorPirHold:
                     if (inputValue == "true")
                     {
                         text += Language.StringByID(StringId.youren) + " ";
@@ -394,6 +395,7 @@
                     }
                     break;
                 case SPK.SensorPir:
+                case SPK.SensorPirHold:
                     foreach (var con in condition)
                     {
                         if (con.value == "true")
@@ -474,11 +476,11 @@
     {
         /// <summary>
         /// 鎺у埗鐩爣绫诲瀷
-        /// 0:璁惧
-        /// 1:鍦烘櫙
-        /// 2:鑷姩鍖�
+        /// 1:璁惧
+        /// 2:鍦烘櫙
+        /// 3:鑷姩鍖�
         /// </summary>
-        public string target_type = "0";
+        public string target_type = "1";
         /// <summary>
         /// 杈撳嚭鐩爣鐨剆id
         /// </summary>
@@ -600,7 +602,7 @@
         public string StateText()
         {
             string text = "";
-            if (target_type == "0")
+            if (target_type == "1")
             {
                 switch (spk)
                 {
@@ -635,7 +637,7 @@
                         }
                         break;
                 }
-            }else if(target_type == "1")
+            }else if(target_type == "2")
             {
                 text = Language.StringByID(StringId.Open);
             }

--
Gitblit v1.8.0