From f58a0928df594adb6c9bff6dbc4cb3c37babd104 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 12 四月 2023 10:01:27 +0800 Subject: [PATCH] Merge branch 'Dev-Wxr' into wjc --- HDL_ON/Common/HDLCommon.cs | 31 +++++++++++++++++++++++++------ 1 files changed, 25 insertions(+), 6 deletions(-) diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs index 800c3d2..d81fca1 100644 --- a/HDL_ON/Common/HDLCommon.cs +++ b/HDL_ON/Common/HDLCommon.cs @@ -433,6 +433,16 @@ /// </summary> public void CheckLogout() { +#if __IOS__ + try{ + HDL_ON_iOS.AppDelegate.rootViewController.PopToRootViewController(false); + }catch(Exception ex){ + MainPage.Log($"鍥炲埌璺熺被澶辫触:{ex.Message}"); + } +#else + //Application.Activity.StartActivity() +#endif + //娴嬭瘯璐﹀彿锛屼笉鎸や笅绾� switch (UserInfo.Current.AccountString) { @@ -447,7 +457,13 @@ //璐﹀彿鍦ㄥ埆澶勭櫥闄嗭紝琚涪涓嬬嚎 璺宠浆鍒扮櫥褰曢〉闈� new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show(); - Logout(); + try + { + Logout(); + }catch (Exception ex) + { + MainPage.Log($"鎸や笅绾垮紓甯�:{ex.Message}"); + } } /// <summary> @@ -470,8 +486,10 @@ UserInfo.Current.LastTime = DateTime.MinValue; UserInfo.Current.SaveUserInfo(); DB_ResidenceData.Instance.EixtAccount(); + MainPage.Log("閫�鍑鸿处鍙锋竻绌烘暟鎹�"); //4.娉ㄩ攢HDLSIP璐﹀彿鐧诲綍 2021-08-20 HDLLinphone.Current.LogoutAllAccount(); + MainPage.Log("娉ㄩ攢HDLSIP璐﹀彿鐧诲綍"); #if __IOS__ //5.鍏ㄨ閫氱櫥鍑� @@ -492,6 +510,7 @@ { if (waitPage != null) { + waitPage.Hide(); waitPage.RemoveFromParent(); waitPage = null; } @@ -582,9 +601,9 @@ } - #endregion +#endregion - #region 鈻� 甯哥敤鏂规硶_______________________ +#region 鈻� 甯哥敤鏂规硶_______________________ /// <summary> /// 璁剧疆涓嬪垝绾挎寜閽姸鎬� /// 缁熶竴灏佽璁剧疆鏂规硶 @@ -659,9 +678,9 @@ Control.Ins.SearchLoaclGateway(); } } - #endregion +#endregion - #region 璺宠浆鎵撳紑钀ょ煶浜戞柟娉� +#region 璺宠浆鎵撳紑钀ょ煶浜戞柟娉� /// <summary> /// 鑾峰彇瀛愯处鍙穞oken骞惰烦杞澶囧垪琛ㄩ〉闈� @@ -782,6 +801,6 @@ { IsBackground = true }.Start(); } - #endregion +#endregion } } -- Gitblit v1.8.0