From edd75644a148ccdd60057064d625141fd49f04b0 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 14 十月 2021 11:37:41 +0800 Subject: [PATCH] 捕抓场景编辑背景图、场景名称、 --- HDL_ON/Entity/FunctionList.cs | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs index aee9ad3..593bb36 100644 --- a/HDL_ON/Entity/FunctionList.cs +++ b/HDL_ON/Entity/FunctionList.cs @@ -279,11 +279,14 @@ break; case SPK.BrandType.Tuya: - foreach (var function in Functions) + lock (Functions) { - if (SPK.Get3tySpk(SPK.BrandType.Tuya).Contains(function.spk)) + foreach (var function in Functions) { - resultFunctions.Add(function); + if (SPK.Get3tySpk(SPK.BrandType.Tuya).Contains(function.spk)) + { + resultFunctions.Add(function); + } } } break; -- Gitblit v1.8.0