From 60eb138bf67b953782ac1572d84b96bf3c660bd4 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 03 四月 2024 20:37:34 +0800
Subject: [PATCH] 0312 不下载的包请求链接

---
 Assets/Launch/ResourcesModel.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Assets/Launch/ResourcesModel.cs b/Assets/Launch/ResourcesModel.cs
index b610c9d..56eaf02 100644
--- a/Assets/Launch/ResourcesModel.cs
+++ b/Assets/Launch/ResourcesModel.cs
@@ -166,12 +166,6 @@
         public void RequestVersionCheck()
         {
             var versionConfig = VersionConfigEx.Get();
-
-            if (versionConfig.assetAccess == VersionConfigEx.InstalledAsset.IngoreDownLoad)
-            {
-                step = LoadDllStep.ReadBytes;
-                return;
-            }
             var tables = new Dictionary<string, string>();
             tables["channel"] = versionConfig.appId;
             tables["versioncode"] = versionConfig.version;
@@ -195,6 +189,12 @@
             {
                 versionUrlResult = _result.Replace("{}", "null");
                 versionInfo = JsonMapper.ToObject<VersionInfo>(versionUrlResult);
+
+                if (VersionConfigEx.Get().assetAccess == VersionConfigEx.InstalledAsset.IngoreDownLoad)
+                {
+                    step = LoadDllStep.ReadBytes;
+                    return;
+                }
                 step = LoadDllStep.PrepareDownLoad;
             }
             else

--
Gitblit v1.8.0