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/Manager/LocalResManager.cs   |    3 ++-
 Assets/Launch/Launch.cs                    |    3 ++-
 Assets/Editor/Tool/InGameDownTestWindow.cs |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Assets/Editor/Tool/InGameDownTestWindow.cs b/Assets/Editor/Tool/InGameDownTestWindow.cs
index 8aa9169..234f19c 100644
--- a/Assets/Editor/Tool/InGameDownTestWindow.cs
+++ b/Assets/Editor/Tool/InGameDownTestWindow.cs
@@ -50,7 +50,7 @@
         EditorGUILayout.Space();
         EditorGUILayout.Space();
         InGameDownTestUtility.isReadVesionEx = EditorGUILayout.Toggle("鏄惁涓嬭浇鐑洿浠g爜", InGameDownTestUtility.isReadVesionEx);
-        EditorGUILayout.TextField("寮�鍚笅杞界儹鏇翠唬鐮侊紝浼氳鍙朧ersionConfigEx.txt 鍒嗘敮闇�閰嶇疆姝g‘, 妫�娴媗ogicbytes.txt");
+        EditorGUILayout.TextField("寮�鍚笅杞界儹鏇翠唬鐮佷細妫�鏌treamingAssets鐩綍锛屾祴璇曞姛鑳藉彲浠ヤ笉鍕鹃�夛紝浼氳鍙朧ersionConfigEx.txt 鍒嗘敮闇�閰嶇疆姝g‘, 妫�娴媗ogicbytes.txt");
     }
 
 }
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;
             }
diff --git a/Assets/Launch/Manager/LocalResManager.cs b/Assets/Launch/Manager/LocalResManager.cs
index f537be5..0136dcb 100644
--- a/Assets/Launch/Manager/LocalResManager.cs
+++ b/Assets/Launch/Manager/LocalResManager.cs
@@ -62,7 +62,8 @@
         }
     }
 
-    public bool isPCTestDownLoad = false;
+    public bool isPCTestDownLoad = false;   //寮�鍚笅杞藉苟寮�鍚笅杞絙ytes
+    public bool isOpenDownLoad = false; //鍙紑鍚笅杞�
 
     public static int downLoadCount = 0;
 

--
Gitblit v1.8.0