From 0abce7f2d672aa934dd0c2ff278638de590f10d8 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 26 九月 2023 10:57:15 +0800 Subject: [PATCH] 场景集成海信电视控制 --- HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs index 62dc7d0..05041cf 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs @@ -193,10 +193,18 @@ } else { - var isHasColorful = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.Colorful); - if (isHasColorful != null) + if (sceneFunction.localFunction.spk == SPK.ElectricalTvHisense) { - sceneFunction.status.Remove(isHasColorful); + sceneFunction.status.Clear(); + sceneFunction.status.Add(new SceneFunctionStatus() { key = "wol", value = "on" }); + } + else + { + var isHasColorful = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.Colorful); + if (isHasColorful != null) + { + sceneFunction.status.Remove(isHasColorful); + } } } } -- Gitblit v1.8.0