Browse Source

启动地址

guodong 1 year ago
parent
commit
f8638a0f9b
1 changed files with 3 additions and 10 deletions
  1. 3 10
      GameClient/Assets/Game/Launcher/LauncherConfig.cs

+ 3 - 10
GameClient/Assets/Game/Launcher/LauncherConfig.cs

@@ -44,6 +44,7 @@ namespace GFGGame
 
         public static void InitScriptCompilation()
         {
+            launcherRootUrl = "http://gfg1.obs.cn-north-4.myhuaweicloud.com/gameRes/";
 #if PT_DEV
             //外网dev版本
             netType = EnumNetType.PUBLIC;
@@ -62,17 +63,9 @@ namespace GFGGame
 #else
             netType = EnumNetType.LOCAL;
             cfgName = "cfg_local";
+            launcherRootUrl = "http://10.108.64.189:81/";
 #endif
-            if (netType == EnumNetType.LOCAL)
-            {
-                launcherRootUrl = "http://10.108.64.189:81/";
-                cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
-            }
-            else
-            {
-                launcherRootUrl = "http://gfg1.obs.cn-north-4.myhuaweicloud.com/gameRes/";
-                cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
-            }
+            cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
         }
 
         public static void InitPlatform(string json)