/// <summary> /// 数据上报 /// </summary> /// <param name="data"></param> public static void Log(string eventID, Dictionary <string, string> data) { if (s_useNewSDKManager) { SDKManagerNew.Log(eventID, data); } else { if (s_logServiceList == null) { throw new Exception("logServiceList is null ,please check SDKManager Init"); } for (int i = 0; i < s_logServiceList.Count; i++) { try { s_logServiceList[i].Log(eventID, data); } catch (Exception e) { Debug.LogError("SDKManager Log Exception: " + e.ToString()); } } } }
/// <summary> /// 数据上报 /// </summary> /// <param name="data"></param> public static void Log(string eventID, Dictionary <string, string> data) { CheckInit(); if (s_useNewSDKManager) { SDKManagerNew.Log(eventID, data); } for (int i = 0; i < s_logServiceList.Count; i++) { try { s_logServiceList[i].Log(eventID, data); } catch (Exception e) { Debug.LogError("SDKManager Log Exception: " + e.ToString()); } } }