From e5f993f52e09eb46878baced83bb8492f147d41c Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 04 十一月 2019 17:58:40 +0800
Subject: [PATCH] 2019-11-04-1

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs |   21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs
index 04a1926..6ac2ad1 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs
@@ -572,11 +572,6 @@
                 //涓嶈兘鍒犻櫎Config鏂囦欢
                 return true;
             }
-            else if (fileName.StartsWith("DeviceUI_") == true)
-            {
-                //涓嶈兘鍒犻櫎璁惧UI鏂囦欢
-                return true;
-            }
             else if (fileName.StartsWith("House_") == true)
             {
                 //涓嶈兘鍒犻櫎浣忓畢鏂囦欢
@@ -620,7 +615,6 @@
                 try
                 {
                     ZigBee.Device.ZbGateway.RemoteMqttClient?.DisconnectAsync();
-                    ZigBee.Device.ZbGateway.RemoteMqttClient = null;
                 }
                 catch { }
 
@@ -840,6 +834,9 @@
                 //鍚屾浜戠鐨勭綉鍏砳d锛屽鏋滄湰鍦版嫢鏈変簯绔笉瀛樺湪鐨刬d锛屽垯琛ㄧず搴旇琚崲缁戜簡锛岀洿鎺ュ垹闄�
                 HdlGatewayLogic.Current.SynchronizeDbGateway();
 
+                //鍒濆鍖栦綇瀹呭璞�
+                Common.Config.Instance.Home = House.GetHouseByHouseId(Common.Config.Instance.HomeId);
+
                 //鍒濆鍖栨埧闂�(閮洩鍩庨偅杈逛笉鍋氬鐞�,闇�瑕佽繖閲岀壒娈婃墽琛屼竴姝�)
                 Room.RefreshAllRoomByLocation();
 
@@ -850,11 +847,11 @@
                 ProgressBar.SetAppendText(string.Empty);
 
                 //0:宸茬粡鍚屾杩囷紝涓嶉渶瑕佸悓姝�,杩欎釜鏃跺�欓渶瑕佹彁绀哄浠�
-                if (result == 0)
-                {
-                    //寮�鍚嚜鍔ㄥ浠芥彁绀�
-                    //HdlAutoBackupLogic.ShowAutoBackupPromptedForm();
-                }
+                //if (result == 0)
+                //{
+                //    //寮�鍚嚜鍔ㄥ浠芥彁绀�
+                //    HdlAutoBackupLogic.ShowAutoBackupPromptedForm();
+                //}
             }
 
             //鎭㈠鍙叧闂繘搴︽潯
@@ -1153,7 +1150,7 @@
             Global.CreateEmptyDirectory(directory);
 
             //鐢ㄦ埛鍥剧墖鐩綍璺緞銆愭枃浠跺す銆�
-            if (!System.IO.Directory.Exists(UserCenterResourse.Option.UserPictruePath))
+            if (UserCenterResourse.Option.UserPictruePath != string.Empty && !System.IO.Directory.Exists(UserCenterResourse.Option.UserPictruePath))
             {
                 System.IO.Directory.CreateDirectory(UserCenterResourse.Option.UserPictruePath);
             }

--
Gitblit v1.8.0