wxr
2024-10-23 47f179be722a61c95cc03c8f90e1aa91c12d1124
HDL-ON_iOS/AppDelegate.cs
@@ -268,19 +268,19 @@
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            #region 异常捕获 2023-07-27 17:37:04
            AppDomain.CurrentDomain.UnhandledException += (sender, e) => {
                if(e.ExceptionObject is Exception exception)
                {
                    MainPage.Log("error", "未处理的异常:" + exception.Message + "StackTrace: " + exception.StackTrace);
                }
            };
            //AppDomain.CurrentDomain.UnhandledException += (sender, e) => {
            //    if(e.ExceptionObject is Exception exception)
            //    {
            //        MainPage.Log("error", "未处理的异常:" + exception.Message + "StackTrace: " + exception.StackTrace);
            //    }
            //};
            TaskScheduler.UnobservedTaskException += (sender, e) => {
                if (e.Exception is Exception exception)
                {
                    MainPage.Log("error", "未处理的异常:" + exception.Message + "StackTrace: " + exception.StackTrace);
                }
            };
            //TaskScheduler.UnobservedTaskException += (sender, e) => {
            //    if (e.Exception is Exception exception)
            //    {
            //        MainPage.Log("error", "未处理的异常:" + exception.Message + "StackTrace: " + exception.StackTrace);
            //    }
            //};
            #endregion
@@ -410,9 +410,8 @@
                        {
                            if (pushMes.Extras.Contains("OffLine"))
                            {
                                //haveToSignOut = true;
                                //强制下线
                                UserInfo.Current.LastTime = DateTime.MinValue;
                                UserInfo.Current.ValidToken = false;
                                UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//重置用户头像
                                UserInfo.Current.SaveUserInfo();
                                HDLCommon.Current.ShowAlert(Language.StringByID(StringId.LoggedOnOtherDevices));