From 74a9ba8e9a2df9c39f9c2eb212a5ac889a055cd4 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 03 十二月 2019 10:47:51 +0800
Subject: [PATCH] 优化UI细节(请合并最新代码)
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs
index 92abd67..7baafdd 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs
@@ -520,7 +520,7 @@
Config.Instance.Home.IsOthreShare = isOthreShare;
Config.Instance.Home.AccountType = accountType;
Config.Instance.Home.MainUserDistributedMark = mainMark;
- Config.Instance.Home.Save();
+ Config.Instance.Home.Save(false);
//鍒锋柊鏈湴缃戝叧鏂囦欢
HdlGatewayLogic.Current.ReFreshByLocal();
@@ -622,7 +622,8 @@
HdlGatewayLogic.Current.ClearAllRealGateway();
try
{
- ZigBee.Device.ZbGateway.DisRemoteMqttClientConnect();
+ //鏂紑杩滅▼Mqtt杩炴帴
+ ZigBee.Device.ZbGateway.DisConnectRemoteMqttClient();
}
catch { }
@@ -790,6 +791,13 @@
if (Common.Config.Instance.HomeId != UserCenterResourse.Option.OldHomeStringId
|| Common.Config.Instance.Account != UserCenterResourse.Option.OldAccountId)
{
+ try
+ {
+ //鏂紑杩滅▼Mqtt杩炴帴
+ ZigBee.Device.ZbGateway.DisConnectRemoteMqttClient();
+ }
+ catch { }
+
//娑堟伅璁板綍閲嶆柊璇诲彇鍙婃娴�
ControlCommonResourse.ReadMessageAgain = true;
//鍔犺浇璐﹀彿閰嶇疆淇℃伅
@@ -844,11 +852,11 @@
HdlGatewayLogic.Current.RefreshAppOldSelectGatewayId();
//0:宸茬粡鍚屾杩囷紝涓嶉渶瑕佸悓姝�,杩欎釜鏃跺�欓渶瑕佹彁绀哄浠�
- //if (result == 0)
- //{
- // //寮�鍚嚜鍔ㄥ浠芥彁绀�
- // HdlAutoBackupLogic.ShowAutoBackupPromptedForm();
- //}
+ if (result == 0)
+ {
+ //寮�鍚嚜鍔ㄥ浠芥彁绀�
+ HdlAutoBackupLogic.ShowAutoBackupPromptedForm();
+ }
}
//APP缂撳瓨鍔犺浇瀹屾垚
UserCenterResourse.Option.AppCanSignout = true;
@@ -929,7 +937,7 @@
newHouse.IsOthreShare = house.IsOthreShare;
newHouse.AccountType = house.AccountType;
newHouse.MainUserDistributedMark = house.MainUserDistributedMark;
- newHouse.Save();
+ newHouse.Save(false);
}
}
if (string.IsNullOrEmpty(userInfo.UserName) == true)
--
Gitblit v1.8.0