From 4a3921769c12e492e762c4f6b65e21bd1694ba95 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 03 十二月 2025 19:23:36 +0800
Subject: [PATCH] 0312 优化内网下载逻辑

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

diff --git a/Assets/Launch/Launch.cs b/Assets/Launch/Launch.cs
index 8b451ff..16480c8 100644
--- a/Assets/Launch/Launch.cs
+++ b/Assets/Launch/Launch.cs
@@ -91,6 +91,7 @@
         _hotUpdateAss = System.AppDomain.CurrentDomain.GetAssemblies().First(a => a.GetName().Name == "Main");
         Type type = _hotUpdateAss.GetType("InGameDownTestUtility");
         LocalResManager.Instance.isPCTestDownLoad = (bool)type.GetMethod("GetReadVerionEx").Invoke(null, null);
+        LocalResManager.Instance.isOpenDownLoad = (bool)type.GetMethod("GetDownloadEnable").Invoke(null, null);
 #endif
         SDKInit();
         LocalResManager.Instance.Init();
@@ -102,7 +103,7 @@
 #if !UNITY_EDITOR
             LocalResManager.step = LocalResManager.LoadDllStep.RequestVersion;
 #else
-            if (LocalResManager.Instance.isPCTestDownLoad)
+            if (LocalResManager.Instance.isOpenDownLoad)
             {
                 LocalResManager.step = LocalResManager.LoadDllStep.RequestVersion;
             }

--
Gitblit v1.8.0