瀏覽代碼

启动地址

guodong 1 年之前
父節點
當前提交
f8638a0f9b
共有 1 個文件被更改,包括 3 次插入10 次删除
  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)