update: 升级自打点-> 1.10.4
parent
d76f6de15e
commit
dab15ac1da
Binary file not shown.
|
|
@ -9,13 +9,14 @@ namespace Guru
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
public class GuruAnalytics
|
||||
{
|
||||
// Plugin Version
|
||||
public const string Version = "1.10.4";
|
||||
|
||||
public static readonly string Tag = "[ANA]";
|
||||
public static readonly string Tag = "[ANU]";
|
||||
private static readonly string ActionName = "logger_error";
|
||||
|
||||
private static IAnalyticsAgent _agent;
|
||||
|
|
@ -54,6 +55,11 @@ namespace Guru
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 错误 code 表
|
||||
/// </summary>
|
||||
public static List<int> ErrorCodeList = new List<int>();
|
||||
|
||||
private static bool _autoSyncProperties = false;
|
||||
private static bool _enableErrorLog = false;
|
||||
|
||||
|
|
@ -70,11 +76,6 @@ namespace Guru
|
|||
if (Agent != null) Agent.EnableErrorLog = _enableErrorLog;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 错误 code 表
|
||||
/// </summary>
|
||||
public static List<int> ErrorCodeList = new List<int>();
|
||||
|
||||
#region 公用接口
|
||||
|
||||
|
|
@ -358,7 +359,7 @@ namespace Guru
|
|||
// Debug.Log($"{Tag} --- OnLoggerErrorEvent: code:{code}\tinfo:{errorInfo}");
|
||||
|
||||
var codeString = ((AnalyticsCode)code).ToString();
|
||||
if (string.IsNullOrEmpty(codeString) || codeString == "Unknown") codeString = $"ErrorCode:{code}";
|
||||
if (string.IsNullOrEmpty(codeString) || codeString == AnalyticsCode.Unknown.ToString()) codeString = $"ErrorCode:{code}";
|
||||
|
||||
Dictionary<string, dynamic> parameters = new Dictionary<string, dynamic>()
|
||||
{
|
||||
|
|
@ -529,12 +530,11 @@ namespace Guru
|
|||
}
|
||||
}
|
||||
|
||||
// Report error to api
|
||||
|
||||
private static void ReportCodeInfo(int code, string info)
|
||||
{
|
||||
var ac = (AnalyticsCode)code;
|
||||
|
||||
Debug.Log($"{Tag} ------ ReportCodeInfo: code:{code}[{ac}] \tinfo:{info}");
|
||||
Debug.Log($"{Tag} ------ Get Code And Info: code:{code}[{ac}] \tinfo:{info}");
|
||||
bool canCatch = false;
|
||||
switch (ac)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue