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