From 282f291d9279319b0e6b4a882b02ed2b50501c04 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期三, 18 十月 2023 15:28:16 +0800
Subject: [PATCH] 2023年10月18日15:27:09

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index ff12c6b..80db2e3 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -218,9 +218,9 @@
                                 case SPK.SensorDryContact2:
                                     {
 
-                                        string value = this.GetKeyValue("on_off", dicList);
+                                        string value = this.GetKeyValue("contact_status", dicList);
                                         inputView.btnState.Text = Language.StringByID(StringId.offLogic);
-                                        if (value == "on")
+                                        if (value == "open")
                                         {
                                             inputView.btnState.Text = Language.StringByID(StringId.onLogic);
                                         }
@@ -2292,7 +2292,7 @@
                         foreach (var dic in dicList)
                         {
                             string value = dic["value"];
-                            if (value == "on")
+                            if (value == "open")
                             {
                                 button1.Text = Language.StringByID(StringId.onLogic);
                             }

--
Gitblit v1.8.0