update: 升级自打点-> 1.10.4
							parent
							
								
									d76f6de15e
								
							
						
					
					
						commit
						dab15ac1da
					
				
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -10,12 +10,13 @@ namespace Guru
 | 
			
		|||
    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;
 | 
			
		||||
        
 | 
			
		||||
| 
						 | 
				
			
			@ -71,11 +77,6 @@ namespace Guru
 | 
			
		|||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 错误 code 表
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public static List<int> ErrorCodeList = new List<int>();
 | 
			
		||||
 | 
			
		||||
        #region 公用接口
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
| 
						 | 
				
			
			@ -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