From 47f179be722a61c95cc03c8f90e1aa91c12d1124 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期三, 23 十月 2024 18:49:23 +0800
Subject: [PATCH] UI走查,安卓

---
 HDL-ON_iOS/AppDelegate.cs |   43 +++++++++++++++++++++----------------------
 1 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index 29f5d9e..9a9db3d 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/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);
-                }
-            };
+            //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);
-                }
-            };
+            //TaskScheduler.UnobservedTaskException += (sender, e) => {
+            //    if (e.Exception is Exception exception)
+            //    {
+            //        MainPage.Log("error", "鏈鐞嗙殑寮傚父锛�" + exception.Message + "StackTrace: " + exception.StackTrace);
+            //    }
+            //};
             #endregion
 
 
@@ -291,7 +291,7 @@
             //{
             //    Shared.IOS.HDLFVSDK.Video.FVapplication(application, new NSDictionary());
             //}
-            Console.WriteLine("111111111111");
+            //Console.WriteLine("111111111111");
             SetCurrentLanguage();
             //Shared.Application.FontSize = 12;
             //Bugly.Bugly.StartWithAppId("1dc40c170a");
@@ -324,13 +324,13 @@
                 Console.WriteLine("鍚姩鍙嬬洘SDK寮傚父锛�"+ex.Message);
             }
 
-            // 娉ㄥ唽杩涘叆鍓嶅彴鐨勯�氱煡
-            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillEnterForegroundNotification, (notification) =>
-            {
-                // 鍋滄鎾斁閾冨0
-                UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
-                UNUserNotificationCenter.Current.RemoveAllDeliveredNotifications();
-            });
+            //// 娉ㄥ唽杩涘叆鍓嶅彴鐨勯�氱煡
+            //NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillEnterForegroundNotification, (notification) =>
+            //{
+            //    // 鍋滄鎾斁閾冨0
+            //    UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
+            //    UNUserNotificationCenter.Current.RemoveAllDeliveredNotifications();
+            //});
 
             Console.WriteLine("FinishedLaunching");
             return true;
@@ -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));

--
Gitblit v1.8.0