From 6fe1c5ebeb8312edc479a4576f05d80c5051a6c6 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 19 七月 2023 19:47:00 +0800
Subject: [PATCH] 炫彩功能优化

---
 HDL_ON/UI/MainPage.cs |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs
index 4f1d9af..e71ce0f 100644
--- a/HDL_ON/UI/MainPage.cs
+++ b/HDL_ON/UI/MainPage.cs
@@ -26,7 +26,7 @@
         /// <summary>
         /// 鐗堟湰鍙�
         /// </summary>
-        public static string VersionString = "1.8.0";
+        public static string VersionString = "1.8.1";
         ///// <summary>
         ///// 瀹㈡埛绔被鍨�
         ///// </summary>
@@ -121,6 +121,7 @@
             SPK.AirSwitch,
             SPK.PanelSocket,SPK.ElectricSocket,
             SPK.MechanicalArm,SPK.IpCam_Imou,
+            SPK.GroupControl
         };
 
 
@@ -223,7 +224,7 @@
 #if __ANDROID__
             new System.Threading.Thread(async () =>
             {
-                int i = 0;
+                int i = 10;
                 while (i < 10) {
                     try
                     {
@@ -454,7 +455,8 @@
                 addResidencePage.LoadView();
                 return;
             }
-            new System.Threading.Thread(async () =>
+
+            new System.Threading.Thread(() =>
             {
                 try
                 {
@@ -504,6 +506,19 @@
                 }
             }).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");
+            }
         }
 
         /// <summary>
@@ -593,7 +608,11 @@
         public static void Log(string msg)
         {
 #if DEBUG
-            Console.WriteLine(msg);
+            if (msg.Contains("鏀跺埌鏁版嵁")
+                || msg.Contains("鍙戦��")
+
+                )
+                Console.WriteLine(msg);
 #endif
         }
 

--
Gitblit v1.8.0