From 3bedb23993745f97e5870eca160c9f00c053c44c Mon Sep 17 00:00:00 2001 From: JLChen <jlchen@JLChendeMac.local> Date: 星期五, 14 五月 2021 18:55:30 +0800 Subject: [PATCH] 实现门锁的UI --- HDL_ON/DAL/Mqtt/MqttInfoConfig.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HDL_ON/DAL/Mqtt/MqttInfoConfig.cs b/HDL_ON/DAL/Mqtt/MqttInfoConfig.cs index c83e9f5..4d44a9c 100644 --- a/HDL_ON/DAL/Mqtt/MqttInfoConfig.cs +++ b/HDL_ON/DAL/Mqtt/MqttInfoConfig.cs @@ -24,7 +24,7 @@ { try { - var MqttInfoConfigBytes = FileUtils.ReadFile(ConfigFile); + var MqttInfoConfigBytes = Common.FileUtlis.Files.ReadFile(ConfigFile); var MqttInfoConfigString = Encoding.UTF8.GetString(MqttInfoConfigBytes); MqttInfoConfig temp = null; if (MqttInfoConfigString != null) @@ -49,7 +49,7 @@ } } - public HomeGatewayInfo HomeGatewayInfo = null; + public HomeGatewayInfo HomeGatewayInfo = new HomeGatewayInfo(); public MqttInfo mMqttInfo = null; @@ -72,7 +72,7 @@ public void Save() { - FileUtils.WriteFileByBytes(ConfigFile, GetMqttInfoConfigBytes()); + Common.FileUtlis.Files.WriteFileByBytes(ConfigFile, GetMqttInfoConfigBytes()); } } } \ No newline at end of file -- Gitblit v1.8.0