From b8c54a7e4048317fc0f33c63a802d60396f82eb0 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 07 十二月 2022 17:31:59 +0800 Subject: [PATCH] 2022年12月07日17:31:56 --- HDL_ON/Entity/Function/Scene.cs | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs index 60c572e..a6b5568 100644 --- a/HDL_ON/Entity/Function/Scene.cs +++ b/HDL_ON/Entity/Function/Scene.cs @@ -692,6 +692,9 @@ case "angle": text = Language.StringByID(StringId.Angle); break; + case "security": + text = Language.StringByID(StringId.DeploymentStatus); + break; } return text; } @@ -743,6 +746,9 @@ string text = ""; switch (key) { + case FunctionAttributeKey.Security: + text = catchString == "true" ? Language.StringByID(StringId.Defense) : Language.StringByID(StringId.Undefense); + break; case FunctionAttributeKey.OnOff: text = catchString == "on" ? Language.StringByID(StringId.On) : Language.StringByID(StringId.OFF); break; @@ -750,6 +756,7 @@ case FunctionAttributeKey.RoomTemp: case FunctionAttributeKey.Brightness: case FunctionAttributeKey.Percent: + case FunctionAttributeKey.CCT: case FunctionAttributeKey.Angle: int outT = 0; int.TryParse(catchString, out outT); -- Gitblit v1.8.0