From 38ca58ae790dc71e50070b54345455988a4a64a3 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 27 八月 2021 11:24:52 +0800 Subject: [PATCH] 2021-8-27-01 --- HDL_ON/DAL/Mqtt/MqttClient.cs | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs index 1a46ca6..559725c 100644 --- a/HDL_ON/DAL/Mqtt/MqttClient.cs +++ b/HDL_ON/DAL/Mqtt/MqttClient.cs @@ -446,12 +446,12 @@ //瀹夐槻鐘舵�佸彉鍖� else if (topic == $"/user/{MqttInfoConfig.Current.HomeGatewayInfo.gatewayId}/custom/security/status/up") { - MainPage.Log($"瀹夐槻鐘舵�佸彉鍖�"); if (!string.IsNullOrEmpty(DB_ResidenceData.Instance.HomeGateway.aesKey)) { var securityBytes = Securitys.EncryptionService.AesDecryptPayload(e.ApplicationMessage.Payload, DB_ResidenceData.Instance.HomeGateway.aesKey); var securityString = Encoding.UTF8.GetString(securityBytes); var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<SecurityStatusObj>(securityString); + MainPage.Log($"瀹夐槻鐘舵�佸彉鍖栵細{securityString}"); if (temp != null) { @@ -462,6 +462,7 @@ if (updataLocalSecurity != null) { updataLocalSecurity.status = updataSecurity.status; + updataLocalSecurity.alarm = updataSecurity.alarm; } } HomePage.LoadEvent_RefreshSecurityStatus(); -- Gitblit v1.8.0