From 1ab047b5fdd933c38ba0519ec2e83a44512ea8d7 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 26 三月 2026 17:46:11 +0800
Subject: [PATCH] webgl代码合并 1

---
 Main/System/AssetVersion/DownLoadAndDiscompressHotTask.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Main/System/AssetVersion/DownLoadAndDiscompressHotTask.cs b/Main/System/AssetVersion/DownLoadAndDiscompressHotTask.cs
index 2ec532b..8d0be2a 100644
--- a/Main/System/AssetVersion/DownLoadAndDiscompressHotTask.cs
+++ b/Main/System/AssetVersion/DownLoadAndDiscompressHotTask.cs
@@ -92,13 +92,16 @@
 
     protected async UniTask Co_StartDownLoad()
     {
+        var config = await VersionConfig.GetAsync();
+
         while (tasks.Count > 0)
         {
             DownloadHotMgr.Instance.Prepare();
+
             for (int i = 0; i < tasks.Count; i++)
             {
                 var assetVersion = tasks[i];
-                var remoteURL = StringUtility.Concat(VersionUtility.Instance.versionInfo.GetResourcesURL(VersionConfig.Get().branch), Language.fixPath, "/", assetVersion.relativePath);
+                var remoteURL = StringUtility.Concat(VersionUtility.Instance.versionInfo.GetResourcesURL(config.branch), Language.fixPath, "/", assetVersion.relativePath);
                 var localURL = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, assetVersion.relativePath);
                 DownloadHotMgr.Instance.AddTask(new DownloadHotTask(remoteURL, localURL));
             }

--
Gitblit v1.8.0