From c7f0f1a0c2148ca9a8944e523404b06351bb7977 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 14 四月 2022 15:35:39 +0800
Subject: [PATCH] 金茂温控器更新

---
 HDL_ON/Entity/Function/Function.cs |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs
index 3772dc2..6e3b439 100644
--- a/HDL_ON/Entity/Function/Function.cs
+++ b/HDL_ON/Entity/Function/Function.cs
@@ -556,6 +556,13 @@
                 SaveFunctionFile();
                 if (pack.Code == StateCode.SUCCESS)
                 {
+                    if (UI.RoomPage.bodyView != null)
+                    {
+                        Application.RunOnMainThread(() =>
+                        {
+                            UI.RoomPage.bodyView.ReLoadPage();
+                        });
+                    }
                 }
                 else
                 {
@@ -709,12 +716,8 @@
             sendDataObj.time_stamp = Utlis.GetTimestamp();
             var acd = new AlinkDoorlockStatus();
             acd.sid = sid;
-            acd.user_id = userId;
+            acd.user_id = extStr;
             acd.ext_str = extStr;
-#if DEBUG
-            acd.user_id = "013";
-            acd.ext_str = "999999";
-#endif
             sendDataObj.objects.Add(acd);
             return sendDataObj;
         }
@@ -1246,6 +1249,10 @@
         /// 绌鸿皟
         /// </summary>
         public const string HvacAC = "hvac.ac";
+        /// <summary>
+        /// 姣涚粏绠$┖璋�
+        /// </summary>
+        public const string HvacCac = "hvac.cac";
 
         /// <summary>
         /// 绌鸿皟spk鍒楄〃
@@ -1257,6 +1264,7 @@
             spkList.Add(AcStandard);
             spkList.Add(HvacAC);
             spkList.Add(AcIr);
+            spkList.Add(HvacCac);
             return spkList;
         }
         #endregion

--
Gitblit v1.8.0