| | |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string VersionString = "1.8.0"; |
| | | public static string VersionString = "1.8.1"; |
| | | ///// <summary> |
| | | ///// 客户端类型 |
| | | ///// </summary> |
| | |
| | | SPK.AirSwitch, |
| | | SPK.PanelSocket,SPK.ElectricSocket, |
| | | SPK.MechanicalArm,SPK.IpCam_Imou, |
| | | SPK.GroupControl |
| | | }; |
| | | |
| | | |
| | |
| | | #if __ANDROID__ |
| | | new System.Threading.Thread(async () => |
| | | { |
| | | int i = 0; |
| | | int i = 10; |
| | | while (i < 10) { |
| | | try |
| | | { |
| | |
| | | addResidencePage.LoadView(); |
| | | return; |
| | | } |
| | | new System.Threading.Thread(async () => |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | |
| | | } |
| | | }).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> |
| | |
| | | public static void Log(string msg) |
| | | { |
| | | #if DEBUG |
| | | Console.WriteLine(msg); |
| | | if (msg.Contains("收到数据") |
| | | || msg.Contains("发送") |
| | | |
| | | ) |
| | | Console.WriteLine(msg); |
| | | #endif |
| | | } |
| | | |