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 | 43 ++++++++++++++++++++++++++++++++++++------- 1 files changed, 36 insertions(+), 7 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index 646dfc2..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: @@ -296,6 +296,11 @@ /// 璁惧spk /// </summary> public string spk = ""; + /// <summary> + /// 鎵╁睍淇℃伅 + /// 瀛楃涓� + /// </summary> + public string extend = ""; private string _SpkCategory = string.Empty; /// <summary> @@ -664,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(); } @@ -1722,6 +1736,16 @@ public static class SPK { /// <summary> + /// 鏈煡SPK + /// (鑷畾涔�) + /// </summary> + public const string NULL = "NULL"; + /// <summary> + /// 瑗垮ⅷ鍙瀵硅闂ㄥ彛鏈� + /// (鑷畾涔�) + /// </summary> + public const string LinphoneXiMo = "door.gate"; + /// <summary> /// 缇ゆ帶锛堣嚜瀹氫箟锛� /// </summary> public const string GroupControl = "groupControl"; @@ -1927,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"; @@ -1940,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