|
@@ -4,7 +4,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
public class LauncherConfig
|
|
public class LauncherConfig
|
|
{
|
|
{
|
|
- public enum EnumNetType { DEV, LOCAL, TEMP, TISHEN }
|
|
|
|
|
|
+ public enum EnumNetType { LOCAL, TEMP, TISHEN, PUBLIC }
|
|
public static EnumNetType netType = EnumNetType.LOCAL;
|
|
public static EnumNetType netType = EnumNetType.LOCAL;
|
|
public static string cfgName;
|
|
public static string cfgName;
|
|
|
|
|
|
@@ -39,30 +39,21 @@ namespace GFGGame
|
|
public static string apkVersion;
|
|
public static string apkVersion;
|
|
public static int serverStatus;
|
|
public static int serverStatus;
|
|
public static int onDebug;
|
|
public static int onDebug;
|
|
- public static string manifest_v;
|
|
|
|
public static string privacy_v;
|
|
public static string privacy_v;
|
|
|
|
|
|
- public static string resKey
|
|
|
|
- {
|
|
|
|
- get
|
|
|
|
- {
|
|
|
|
-#if PT_TEMP || PT_TISHEN || PT_DEV
|
|
|
|
- return "dfs";
|
|
|
|
-#else
|
|
|
|
- return null;
|
|
|
|
-#endif
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public static void InitScriptCompilation()
|
|
public static void InitScriptCompilation()
|
|
{
|
|
{
|
|
#if PT_DEV
|
|
#if PT_DEV
|
|
//外网dev版本
|
|
//外网dev版本
|
|
- netType = EnumNetType.DEV;
|
|
|
|
|
|
+ netType = EnumNetType.TEMP;
|
|
cfgName = "cfg_dev";
|
|
cfgName = "cfg_dev";
|
|
#elif PT_TEMP
|
|
#elif PT_TEMP
|
|
netType = EnumNetType.TEMP;
|
|
netType = EnumNetType.TEMP;
|
|
cfgName = "cfg_temp";
|
|
cfgName = "cfg_temp";
|
|
|
|
+#elif PT_IOS
|
|
|
|
+ netType == EnumNetType.TEMP;
|
|
|
|
+ cfgName = "cfg_ios";
|
|
|
|
+ platformId = 2;
|
|
#elif PT_TISHEN
|
|
#elif PT_TISHEN
|
|
netType = EnumNetType.TISHEN;
|
|
netType = EnumNetType.TISHEN;
|
|
cfgName = "cfg_ts";
|
|
cfgName = "cfg_ts";
|
|
@@ -71,15 +62,14 @@ namespace GFGGame
|
|
cfgName = "cfg_local";
|
|
cfgName = "cfg_local";
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-
|
|
|
|
- if (cfgName == "cfg_local")
|
|
|
|
|
|
+ if (netType == EnumNetType.LOCAL)
|
|
{
|
|
{
|
|
launcherRootUrl = "http://10.108.64.189:81/";
|
|
launcherRootUrl = "http://10.108.64.189:81/";
|
|
cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
|
|
cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- launcherRootUrl = "http://gfg1.obs.cn-north-4.myhuaweicloud.com/14/";
|
|
|
|
|
|
+ launcherRootUrl = "http://gfg1.obs.cn-north-4.myhuaweicloud.com/gameRes/";
|
|
cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
|
|
cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -95,7 +85,6 @@ namespace GFGGame
|
|
LauncherConfig.apkVersion = result.apkVersion;
|
|
LauncherConfig.apkVersion = result.apkVersion;
|
|
LauncherConfig.serverStatus = int.Parse(result.serverStatus);
|
|
LauncherConfig.serverStatus = int.Parse(result.serverStatus);
|
|
LauncherConfig.onDebug = int.Parse(result.onDebug);
|
|
LauncherConfig.onDebug = int.Parse(result.onDebug);
|
|
- LauncherConfig.manifest_v = result.manifest_v;
|
|
|
|
LauncherConfig.privacy_v = result.privacy_v;
|
|
LauncherConfig.privacy_v = result.privacy_v;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -106,7 +95,6 @@ namespace GFGGame
|
|
public string apkVersion;
|
|
public string apkVersion;
|
|
public string serverStatus;
|
|
public string serverStatus;
|
|
public string onDebug;
|
|
public string onDebug;
|
|
- public string manifest_v;
|
|
|
|
public string privacy_v;
|
|
public string privacy_v;
|
|
}
|
|
}
|
|
|
|
|