From b847c06d8617efb2cbbad6f11b0344b779138e92 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 14 十月 2024 18:03:45 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wjc' into feature/v2.7_迭代

---
 HDL_ON/Entity/Function/Function.cs |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs
index 0f71691..5ae0598 100644
--- a/HDL_ON/Entity/Function/Function.cs
+++ b/HDL_ON/Entity/Function/Function.cs
@@ -198,7 +198,7 @@
                     case SPK.HvacAirFreshJinmao:
                         iconPath = "airFreshjinmao";
                         break;
-                    case SPK.HvacAC:
+                    case SPK.HvacAC:case SPK.HvacAcPanel:
                         iconPath = "acstandard";
                         break;
                     case SPK.HvacFan:
@@ -669,21 +669,30 @@
                         result = ApiUtlis.Ins.HttpRequest.CancelCollectDevice(deviceId).Code;
                     }
                 }
-                //鎻愮ず閿欒
                 if (result != StateCode.SUCCESS)
                 {
-                    Application.RunOnMainThread(() =>
+                    if (!Common.ApiUtlis.Ins.hadInternet)
                     {
-                        collect = !collect;
-                        IMessageCommon.Current.ShowErrorInfoAlter(result);
-                    });
-                } else
+                        this.SaveFunctionFile();
+                    }
+                    else
+                    {
+                        Application.RunOnMainThread(() =>
+                        {
+                            collect = !collect;
+                            IMessageCommon.Current.ShowErrorInfoAlter(result);
+                        });
+                    }
+                }
+                else
                 {
                     Application.RunOnMainThread(() =>
                     {
+                        this.SaveFunctionFile();
                         UI.HomePage.RefreshFunctionView();
                     });
                 }
+                
             })
             { IsBackground = true }.Start();
         }
@@ -1942,6 +1951,10 @@
         /// </summary>
         public const string HvacAC = "hvac.ac";
         /// <summary>
+        /// 闈㈡澘绌鸿皟
+        /// </summary>
+        public const string HvacAcPanel = "hvac.ac_panel";
+        /// <summary>
         /// 姣涚粏绠$┖璋�
         /// </summaryc
         public const string HvacCac = "hvac.cac";
@@ -1955,6 +1968,7 @@
             var spkList = new List<string>();
             spkList.Add(AcStandard);
             spkList.Add(HvacAC);
+            spkList.Add(HvacAcPanel);
             spkList.Add(AcIr);
             spkList.Add(HvacCac);
             return spkList;

--
Gitblit v1.8.0