From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 21 二月 2020 13:08:47 +0800 Subject: [PATCH] 先上传个版本吧 --- ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs | 12 +++--------- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs b/ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs index e61dadc..f9dddbd 100755 --- a/ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs +++ b/ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs @@ -56,13 +56,7 @@ /// 鍞竴鏍囪瘑--HashCode /// DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo) /// </summary> - public string SceneTargetDeviceUIID - { - get - { - return GetHashCode().ToString(); - } - } + public string SceneTargetDeviceUIID = Guid.NewGuid().ToString(); /// <summary> /// GetDeviceStatu @@ -112,11 +106,11 @@ { return null; } - if (TaskList[0].Data1 == 0) + if (TaskList[0].Data1 == 1) { return Language.StringByID(R.MyInternationalizationString.Shut); } - return $"{TaskList[0].Data1}%"; + return $"{TaskList[0].Data2}%"; } else if (DeviceUI.CommonDevice.Type == ZigBee.Device.DeviceType.Thermostat) { -- Gitblit v1.8.0