From 4d68f91b814e4b82187d29e8400bf870ff302923 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 17 六月 2024 09:28:25 +0800
Subject: [PATCH] 保存配置

---
 HDL_ON/UI/MainPage.cs |   34 +++++++++++++++++++++-------------
 1 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs
index 93e2089..ed56fc1 100644
--- a/HDL_ON/UI/MainPage.cs
+++ b/HDL_ON/UI/MainPage.cs
@@ -26,7 +26,7 @@
         /// <summary>
         /// 鐗堟湰鍙�
         /// </summary>
-        public static string VersionString = "2.3.5";
+        public static string VersionString = "2.4.6";
         ///// <summary>
         ///// 瀹㈡埛绔被鍨�
         ///// </summary>
@@ -521,18 +521,18 @@
             }).Start();
 
 
-            try
-            {
-#if __ANDROID__
-                Com.Chteam.Agent.BuglyAgentHelper.SetUserId(UserInfo.Current.AccountString);
-#else
-                Bugly.Bugly.SetUserIdentifier(UserInfo.Current.AccountString);
-#endif
-            }
-            catch (Exception ex)
-            {
-                MainPage.Log("Bugly error");
-            }
+//            try
+//            {
+//#if __ANDROID__
+//                //Com.Chteam.Agent.BuglyAgentHelper.SetUserId(UserInfo.Current.AccountString);
+//#else
+//                //Bugly.Bugly.SetUserIdentifier(UserInfo.Current.AccountString);
+//#endif
+//            }
+//            catch (Exception ex)
+//            {
+//                MainPage.Log("Bugly error");
+//            }
         }
 
         /// <summary>
@@ -649,6 +649,14 @@
         {
 #if DEBUG
             Console.WriteLine($"{tag}-->{msg}");
+            if (tag == "error")
+            {
+                new System.Threading.Thread(async () =>
+                {
+                    await Common.AliyunLog.AliyunLogClient.PostLogs("鑷畾涔塃rror鏃ュ織", msg);
+                })
+                { IsBackground = true }.Start();
+            }
 #endif
         }
 

--
Gitblit v1.8.0