| | |
| | | case "ryzj": |
| | | VERSION_URL = new string[] |
| | | { |
| | | "https://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php?", |
| | | "https://106.55.151.92:11000/center/appversion_new.php?", |
| | | "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[] |
| | | { |
| | | "https://sghycenter.funimpactgames.com:11000/center/appversion_new.php?", |
| | | "https://47.250.213.171:11000/center/appversion_new.php?", |
| | | "http://sghycenter.funimpactgames.com:11000/center/appversion_new.php?", |
| | | "http://47.250.213.171:11000/center/appversion_new.php?", |
| | | }; |
| | | break; |
| | | case "xssgyh": |
| | | VERSION_URL = new string[] |
| | | { |
| | | "https://xssgyhcenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | "http://xssgyhcenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | }; |
| | | break; |
| | | case "xssgdy": |
| | | VERSION_URL = new string[] |
| | | { |
| | | "https://xssgdycenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | "http://xssgdycenter.secondworld.net.cn:11000/center/appversion_new.php/?", |
| | | }; |
| | | break; |
| | | default: |
| | | VERSION_URL = new string[] |
| | | { |
| | | "https://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php?", |
| | | "https://106.55.151.92:11000/center/appversion_new.php?", |
| | | "http://xssgcenter.secondworld.net.cn:11000/center/appversion_new.php?", |
| | | "http://106.55.151.92:11000/center/appversion_new.php?", |
| | | }; |
| | | break; |
| | | } |
| | |
| | | { |
| | | VERSION_URL = new string[] |
| | | { |
| | | "https://gamecenter.secondworld.net.cn/center/appversion_new.php?", |
| | | "http://gamecenter.secondworld.net.cn/center/appversion_new.php?", |
| | | }; |
| | | } |
| | | #endif |
| | |
| | | case "test": |
| | | case "xssg": |
| | | case "ryzj": |
| | | url = "https://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | url = "http://xssgcenter.secondworld.net.cn/center/eventreport.php?"; |
| | | break; |
| | | case "sghy": |
| | | url = "https://sghycenter.funimpactgames.com:11000/center/eventreport.php?"; |
| | | url = "http://sghycenter.funimpactgames.com/center/eventreport.php?"; |
| | | break; |
| | | case "xssgyh": |
| | | url = "https://xssgyhcenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | url = "http://xssgyhcenter.secondworld.net.cn/center/eventreport.php?"; |
| | | break; |
| | | case "xssgdy": |
| | | url = "https://xssgdycenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | url = "http://xssgdycenter.secondworld.net.cn/center/eventreport.php?"; |
| | | break; |
| | | default: |
| | | url = "https://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | url = "http://xssgcenter.secondworld.net.cn/center/eventreport.php?"; |
| | | break; |
| | | } |
| | | #if TEST_URL |
| | | url = "https://gamecenter.secondworld.net.cn:11000/center/eventreport.php?"; |
| | | url = "http://gamecenter.secondworld.net.cn/center/eventreport.php?"; |
| | | #endif |
| | | } |
| | | |
| | |
| | | { |
| | | #if UNITY_IOS |
| | | return UnityEngine.iOS.Device.advertisingIdentifier; |
| | | #elif UNITY_WEBGL |
| | | #elif UNITY_WEBGL && !UNITY_EDITOR |
| | | return GetWebGLDeviceId(); |
| | | #else |
| | | return UnityEngine.SystemInfo.deviceUniqueIdentifier; |
| | | #endif |
| | | } |
| | | |
| | | public static string GetWebGLDeviceId() |
| | | { |
| | | #if UNITY_WEBGL && !UNITY_EDITOR |
| | | return GetOrCreateWebGLDeviceId(); |
| | | #else |
| | | return UnityEngine.SystemInfo.deviceUniqueIdentifier; |
| | | #endif |
| | | } |
| | | |
| | | |
| | | public static string GetDeviceOSLevel() |
| | | { |