guodong vor 2 Jahren
Ursprung
Commit
00fbca0610

+ 5 - 2
GameClient/Assets/Game/Launcher/LauncherConfig.cs

@@ -22,6 +22,7 @@ namespace GFGGame
         public static string CDN_ROOT;
         public static string loginApiUrl;
         public static string gameApiUrl;
+        public static string launcherRootUrl;
         public static string cfgUrl;
         //平台id
         public static int platformId = 1;
@@ -67,11 +68,13 @@ namespace GFGGame
 
             if (cfgName == "cfg_local")
             {
-                cfgUrl = "http://10.108.64.189:81/platform/{cfgName}.json";
+                launcherRootUrl = "http://10.108.64.189:81/";
+                cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
             }
             else
             {
-                cfgUrl = "http://gfg1.obs.cn-north-4.myhuaweicloud.com/14/platform/{cfgName}.json";
+                launcherRootUrl = "http://gfg1.obs.cn-north-4.myhuaweicloud.com/14/";
+                cfgUrl = launcherRootUrl + "platform/{cfgName}.json";
             }
         }
 

+ 1 - 1
GameClient/Assets/Game/Launcher/Views/FullScreenTextView.cs

@@ -90,7 +90,7 @@ namespace GFGGame
                 default:
                     return;
             }
-            string url = LauncherConfig.CDN_ROOT + $"privacy/{fileName}.txt?v={LauncherConfig.privacy_v}";
+            string url = LauncherConfig.launcherRootUrl + $"privacy/{fileName}.txt?v={LauncherConfig.privacy_v}";
             HttpTool.Instance.Get(url, (string content) =>
             {
                 _ui.m_txtComp.m_txtContent.text = content;