| | |
| | | |
| | | public static int downLoadCount = 0; |
| | | |
| | | public static readonly string[] VERSION_URL = new string[] |
| | | { |
| | | #if TEST_URL |
| | | "http://gamecenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | #else |
| | | "http://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | #endif |
| | | "http://106.55.151.92:11000/center/appversion_new.php/?", |
| | | }; |
| | | public static string[] VERSION_URL; |
| | | |
| | | public int debugBranch { get; private set; } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | //根据不同 平台设置不同的版本url |
| | | public void SetVersionUrl() |
| | | { |
| | | var appID = VersionConfigEx.Get().appId; |
| | | switch (appID) |
| | | { |
| | | case "test": |
| | | case "xssg": |
| | | case "ryzj": |
| | | VERSION_URL = new string[] |
| | | { |
| | | "http://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | "http://106.55.151.92:11000/center/appversion_new.php/?", |
| | | }; |
| | | break; |
| | | case "sghy": |
| | | VERSION_URL = new string[] |
| | | { |
| | | "http://sghycenter.funimpactgames.com:11000/center/appversion_new.php/?", |
| | | "http://47.250.213.171:11000/center/appversion_new.php/?", |
| | | }; |
| | | break; |
| | | default: |
| | | VERSION_URL = new string[] |
| | | { |
| | | "http://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | "http://106.55.151.92:11000/center/appversion_new.php/?", |
| | | }; |
| | | break; |
| | | } |
| | | |
| | | #if TEST_URL |
| | | VERSION_URL = new string[] |
| | | { |
| | | "http://gamecenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | }; |
| | | #endif |
| | | } |
| | | |
| | | // 对齐 YooAssetService.ExecuteWithRetryAsync:指数退避重试(500→1000→2000ms) |
| | | private const int YOO_MAX_RETRY = 3; |
| | |
| | | |
| | | urlIndex++; |
| | | versionUrl = url; |
| | | Debug.Log("http地址:versionUrl " + url); |
| | | HttpRequest.Instance.RequestHttpGet(url, HttpRequest.defaultHttpContentType, 1, OnVersionCheckResult); |
| | | } |
| | | #endif |
| | |
| | | |
| | | #region 事件汇报 |
| | | |
| | | #if TEST_URL |
| | | const string url = "http://gamecenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | #else |
| | | const string url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | #endif |
| | | |
| | | public string url; |
| | | |
| | | |
| | | //根据不同 平台设置不同的版本url |
| | | public void SetEventReportUrl() |
| | | { |
| | | var appID = VersionConfigEx.Get().appId; |
| | | switch (appID) |
| | | { |
| | | case "test": |
| | | case "xssg": |
| | | case "ryzj": |
| | | url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | break; |
| | | case "sghy": |
| | | url = "http://sghycenter.funimpactgames.com:11000/center/eventreport.php?"; |
| | | break; |
| | | default: |
| | | url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | public void RecordLauchEvent(int _step) |
| | | { |