From f9181a9c8125136f597add7c30cb2ff508d54ba7 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 25 七月 2024 17:34:32 +0800 Subject: [PATCH] 2024年07月25日17:33:40 --- 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