From c1cb2d8c6034a2ee7aa8a5710bba15b14f76cebc Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 18 八月 2023 18:54:31 +0800 Subject: [PATCH] 2023年08月18日18:54:22 --- HDL_ON/Entity/Function/Function.cs | 48 +++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 39 insertions(+), 9 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index 8f4f3c3..6e0f81f 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -803,25 +803,27 @@ var list = new List<FunctionAttributes>(); if (spk == SPK.GroupControl) { - var gc = FunctionList.List.groupControls.Find((obj) => obj.sid == sid); - if (gc != null) + lock (list) { - foreach (var temp in gc.sids) + var gc = FunctionList.List.groupControls.Find((obj) => obj.sid == sid); + if (gc != null) { - var light = FunctionList.List.GetLightList().Find((obj) => obj.sid == temp.sid); - if (light != null) + foreach (var temp in gc.sids) { - foreach (var attr in light.attributes) + var light = FunctionList.List.GetLightList().Find((obj) => obj.sid == temp.sid); + if (light != null) { - if (list.Find((obj) => obj.key == attr.key) == null) + foreach (var attr in light.attributes) { - list.Add(attr); + if (list.Find((obj) => obj.key == attr.key) == null) + { + list.Add(attr); + } } } } } } - } else { @@ -1142,6 +1144,10 @@ /// 褰撳墠鍊� /// </summary> public object curValue = new object(); + /// <summary> + /// 灞炴�у崟浣� + /// </summary> + public string unit=string.Empty; } /// <summary> @@ -1552,6 +1558,11 @@ /// </summary> public const string Ev_Ipcam = "security.ipcam.ez"; /// <summary> + /// 褰遍煶涓帶 + /// </summary> + public const string AvZkAiks = "av.zk.aiks"; + + /// <summary> /// 钀ょ煶瑙嗛闂ㄩ攣spk鍒楄〃 /// </summary> /// <returns></returns> @@ -1559,6 +1570,20 @@ { var list = new List<string>(); list.Add(VideoDoorLock); + return list; + } + + + /// <summary> + /// 褰遍煶涓帶spk鍒楄〃 + /// </summary> + /// <returns></returns> + public static List<string> GetVideoControlsSPKList() + { + var list = new List<string> + { + AvZkAiks + }; return list; } @@ -1992,6 +2017,10 @@ #region 瀹剁數 /// <summary> + /// 娴蜂俊鐢佃 + /// </summary> + public const string ElectricalTvHisense = "electrical.tv.hisense"; + /// <summary> /// 瀹剁數銆佹彃搴� /// </summary> public const string ElectricSocket = "electrical.socket"; @@ -2105,6 +2134,7 @@ spkList.Add(ElectricTuyaWaterValve); spkList.Add(ElectricTuyaWaterValve2); spkList.Add(AirSwitch); + spkList.Add(ElectricalTvHisense); return spkList; } -- Gitblit v1.8.0