From c1e3ff02ca39fe65d0685b06d1e1f63e25eaedb5 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 07 六月 2023 14:54:12 +0800
Subject: [PATCH] 2023年06月07日14:53:51

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index 014f3bb..430bd42 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -1170,8 +1170,8 @@
 
                                         if (set_temp != "")
                                         {
-
-                                            stateStr += set_temp + "鈩�,";
+                                            string unit = device.GetAttribute("temperature_type") == null ? "掳" : device.GetAttribute("temperature_type").state;
+                                            stateStr += set_temp + unit+",";
                                         }
 
                                         if (mode != "")
@@ -1268,8 +1268,8 @@
                                         }
                                         if (set_temp != "")
                                         {
-
-                                            stateStr += set_temp + "鈩�,";
+                                            string unit = device.GetAttribute("temperature_type") == null ? "掳" : device.GetAttribute("temperature_type").state;
+                                            stateStr += set_temp + unit + ",";
                                         }
                                         if (mode != "")
                                         {

--
Gitblit v1.8.0