| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | #region 事件汇报 |
| | | |
| | | const string url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | |
| | | |
| | | public void RecordLauchEvent(int _step) |
| | | { |
| | | #if !UNITY_EDITOR |
| | | var tables = new Dictionary<string, string>(); |
| | | tables["OperatorID"] = VersionConfigEx.Get().appId; |
| | | tables["RegionName"] = "data"; |
| | | tables["EventID"] = (6000 + _step).ToString(); |
| | | tables["ProductID"] = VersionConfigEx.Get().gameId; |
| | | tables["Device"] = GetDeviceModel(); |
| | | tables["os_version"] = GetDeviceOSLevel(); |
| | | tables["game_version"] = StringUtility.Concat(VersionConfigEx.Get().version, "_", VersionConfigEx.Get().buildIndex.ToString()); |
| | | tables["IMEI"] = GetDeviceUniquenessIdentify(); |
| | | tables["Time"] = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | HttpRequest.Instance.RequestHttpGet(StringUtility.Concat(url, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType); |
| | | #endif |
| | | } |
| | | |
| | | public static string GetDeviceModel() |
| | | { |
| | | #if UNITY_IOS |
| | | return UnityEngine.iOS.Device.generation.ToString(); |
| | | #else |
| | | return SystemInfo.deviceModel; |
| | | #endif |
| | | } |
| | | |
| | | public static string GetDeviceOSLevel() |
| | | { |
| | | #if UNITY_IOS |
| | | return UnityEngine.iOS.Device.systemVersion; |
| | | #else |
| | | return SystemInfo.operatingSystem; |
| | | #endif |
| | | } |
| | | |
| | | public static string GetDeviceUniquenessIdentify() |
| | | { |
| | | #if UNITY_IOS |
| | | return UnityEngine.iOS.Device.advertisingIdentifier; |
| | | #else |
| | | return SystemInfo.deviceUniqueIdentifier; |
| | | #endif |
| | | } |
| | | #endregion |
| | | |
| | | public class VersionInfo |
| | | { |
| | | public JsonData notice_flag; |