| | |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string VersionString = "2.4.2"; |
| | | public static string VersionString = "2.4.8"; |
| | | ///// <summary> |
| | | ///// 客户端类型 |
| | | ///// </summary> |
| | |
| | | }).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> |
| | |
| | | #if DEBUG |
| | | Console.WriteLine($"{tag}-->{msg}"); |
| | | #endif |
| | | if (tag == "error") |
| | | { |
| | | new System.Threading.Thread(async () => |
| | | { |
| | | await Common.AliyunLog.AliyunLogClient.PostLogs("自定义Error日志", msg); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | } |
| | | |
| | | |