|
@@ -187,25 +187,23 @@ namespace GFGGame
|
|
//string hostServerIP = "http://10.108.64.127";
|
|
//string hostServerIP = "http://10.108.64.127";
|
|
string hostServerIP = LauncherConfig.CDN_ROOT;
|
|
string hostServerIP = LauncherConfig.CDN_ROOT;
|
|
|
|
|
|
|
|
+ string platform = "PC";
|
|
#if UNITY_EDITOR
|
|
#if UNITY_EDITOR
|
|
if (UnityEditor.EditorUserBuildSettings.activeBuildTarget == UnityEditor.BuildTarget.Android)
|
|
if (UnityEditor.EditorUserBuildSettings.activeBuildTarget == UnityEditor.BuildTarget.Android)
|
|
- return $"{hostServerIP}/Android/{packageName}";
|
|
|
|
|
|
+ platform = "Android";
|
|
else if (UnityEditor.EditorUserBuildSettings.activeBuildTarget == UnityEditor.BuildTarget.iOS)
|
|
else if (UnityEditor.EditorUserBuildSettings.activeBuildTarget == UnityEditor.BuildTarget.iOS)
|
|
- return $"{hostServerIP}/IPhone/{packageName}";
|
|
|
|
|
|
+ platform = "IOS";
|
|
else if (UnityEditor.EditorUserBuildSettings.activeBuildTarget == UnityEditor.BuildTarget.WebGL)
|
|
else if (UnityEditor.EditorUserBuildSettings.activeBuildTarget == UnityEditor.BuildTarget.WebGL)
|
|
- return $"{hostServerIP}/WebGL/{packageName}";
|
|
|
|
- else
|
|
|
|
- return $"{hostServerIP}/PC/{packageName}";
|
|
|
|
|
|
+ platform = "WebGL";
|
|
#else
|
|
#else
|
|
if (Application.platform == RuntimePlatform.Android)
|
|
if (Application.platform == RuntimePlatform.Android)
|
|
- return $"{hostServerIP}/Android/{packageName}";
|
|
|
|
|
|
+ platform = "Android";
|
|
else if (Application.platform == RuntimePlatform.IPhonePlayer)
|
|
else if (Application.platform == RuntimePlatform.IPhonePlayer)
|
|
- return $"{hostServerIP}/IOS/{packageName}";
|
|
|
|
|
|
+ platform = "IOS";
|
|
else if (Application.platform == RuntimePlatform.WebGLPlayer)
|
|
else if (Application.platform == RuntimePlatform.WebGLPlayer)
|
|
- return $"{hostServerIP}/WebGL/{packageName}";
|
|
|
|
- else
|
|
|
|
- return $"{hostServerIP}/PC/{packageName}";
|
|
|
|
|
|
+ platform = "WebGL";
|
|
#endif
|
|
#endif
|
|
|
|
+ return $"{hostServerIP}/{platform}/{packageName}/HostPlay";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 远端资源地址查询服务类
|
|
/// 远端资源地址查询服务类
|