From 5215a463afd281f62ecd67b2ae87d37404174287 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 28 八月 2023 15:41:59 +0800 Subject: [PATCH] 2023年08月28日15:41:39 --- HDL_ON/Entity/Function/Scene.cs | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs index df2aa7f..cf4d230 100644 --- a/HDL_ON/Entity/Function/Scene.cs +++ b/HDL_ON/Entity/Function/Scene.cs @@ -151,6 +151,7 @@ /// 閰嶅悎璞嗚眴淇敼浜戠鏁版嵁 /// 璋冭瘯瀹濄�乷n pro鍜屽钩鍙板搴� /// </summary> + [Newtonsoft.Json.JsonIgnore] public List<SceneImageInfo> OssSceneImages = new List<SceneImageInfo>() { new SceneImageInfo @@ -597,8 +598,8 @@ } if (tempState != null) { - sceneFunctionInfo += tempState.GetValueText() + " "; - sceneFunctionInfo += tempState.GetUintString(); + sceneFunctionInfo += tempState.GetValueText(); + sceneFunctionInfo += tempState.GetUintString() + " "; } if (fanState != null) { @@ -705,6 +706,12 @@ case "security": text = Language.StringByID(StringId.DeploymentStatus); break; + case FunctionAttributeKey.SetVolume: + text = Language.StringByID(StringId.yinliang); + break; + case FunctionAttributeKey.Signal: + text = Language.StringByID(StringId.xinhaoyuan); + break; } return text; } @@ -716,7 +723,7 @@ /// </summary> public string GetUintString() { - if (!string.IsNullOrEmpty(UintString) && UintString!= "{}") + if (!string.IsNullOrEmpty(UintString) && UintString != "{}") { return UintString; } @@ -850,6 +857,14 @@ case "auto": text = Language.StringByID(StringId.Auto); break; + case FunctionAttributeKey.SetVolume: + text = value; + break; + case FunctionAttributeKey.Signal: + var p = new UI.UI2.Intelligence.Automation.PublicInterface(); + var dic = p.GetHisenseSignalSourceDic(); + text = p.GetKey(dic, value); + break; } return text; } -- Gitblit v1.8.0