From 2b58e2ea2fc26e9aa58e960c2bbcde8f564ba0ae Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 19 五月 2026 17:44:30 +0800
Subject: [PATCH] 0312 增加地址输出

---
 Assets/Launch/Launch.cs                      |    6 +++---
 Assets/Launch/Manager/YooAssetInitializer.cs |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Assets/Launch/Launch.cs b/Assets/Launch/Launch.cs
index abbe593..9465aac 100644
--- a/Assets/Launch/Launch.cs
+++ b/Assets/Launch/Launch.cs
@@ -144,7 +144,7 @@
                 ? null
                 : WebGLRemoteConfig.CreateRemoteServices();
             if (!string.IsNullOrEmpty(webCdnUrl))
-                remoteCdnBaseUrl = webCdnUrl + "/" + Application.platform.ToString().ToLower();
+                remoteCdnBaseUrl = webCdnUrl;
             Debug.Log($"[Launch] WebGL remoteCdnBaseUrl={remoteCdnBaseUrl ?? WebGLRemoteConfig.ActiveServerURL}");
 #else
             // 闈� WebGL 姝e紡鍖咃細
@@ -157,7 +157,7 @@
             if (!string.IsNullOrEmpty(cdnUrl))
             {
                 playMode = EPlayMode.HostPlayMode;
-                remoteCdnBaseUrl = cdnUrl + "/" + Application.platform.ToString().ToLower();
+                remoteCdnBaseUrl = cdnUrl;
                 Debug.Log($"[Launch] cdnUrl={cdnUrl}, using HostPlayMode");
             }
             else
@@ -168,7 +168,7 @@
 #endif
 
             Debug.Log($"[Launch] Initializing YooAsset early with PlayMode={playMode}");
-            await YooAssetInitializer.Instance.InitializeAsync(playMode, remoteServices, remoteCdnBaseUrl);
+            await YooAssetInitializer.Instance.InitializeAsync(playMode, remoteServices, remoteCdnBaseUrl + LocalResManager.fixPath);
 
 #if UNITY_WEBGL
             await VersionConfigEx.Get();
diff --git a/Assets/Launch/Manager/YooAssetInitializer.cs b/Assets/Launch/Manager/YooAssetInitializer.cs
index ec5618b..cdf37f1 100644
--- a/Assets/Launch/Manager/YooAssetInitializer.cs
+++ b/Assets/Launch/Manager/YooAssetInitializer.cs
@@ -153,6 +153,7 @@
         _playMode = playMode;
         _remoteServices = remoteServices;
         _remoteCdnBaseUrl = remoteCdnBaseUrl;
+        Debug.LogFormat("Yoo InitializeAsync cdn鍦板潃 {0}", remoteCdnBaseUrl);
 
         var names = packageNames ?? LAUNCH_PACKAGES;
         int successCount = 0;

--
Gitblit v1.8.0