From 691b0f2434acc1685b43f873657c9230726ffe6f Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期二, 19 四月 2022 13:38:20 +0800 Subject: [PATCH] 1.增加人脸、可视对讲入口 2.增加清除推送角标数值接口 3.修改初始化全视通、登出全视通 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs index 109732b..cd21d5b 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs @@ -97,7 +97,7 @@ { return Language.StringByID(R.MyInternationalizationString.Close); } - return $"{(int)((device as DimmableLight).Level * 1.0 / 254 * 100)}%"; + return HdlDeviceCommonLogic.Current.CalculateLightLevelPersent((device as DimmableLight).Level) + "%"; } else if (device.Type == DeviceType.ColorTemperatureLight) { @@ -110,7 +110,7 @@ { return Language.StringByID(R.MyInternationalizationString.Close); } - return $"{(int)((device as ColorTemperatureLight).Level * 1.0 / 254 * 100)}%"; + return HdlDeviceCommonLogic.Current.CalculateLightLevelPersent((device as ColorTemperatureLight).Level) + "%"; } else if (device.Type == DeviceType.WindowCoveringDevice) { @@ -432,8 +432,8 @@ humidity = $"{tempera.currentHumidity}%"; temperature = $"{tempera.currentTemperature}鈩�"; pm = $"{tempera.currentPmData}渭g/m鲁"; - co2 = $"{tempera.currentCO2}ppm"; - return $"{curQuality},{pm},{co2},{temperature},{humidity}"; + //co2 = $"{tempera.currentCO2}ppm"; + return $"{curQuality},{pm},{temperature},{humidity}"; } else { -- Gitblit v1.8.0