From ad754b0ed9a65f2ca8d705210beab9b055fe2664 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 20 五月 2025 14:30:34 +0800
Subject: [PATCH] launch部分的修改(重复检验下载的bytes的问题)

---
 Assets/Launch/Common/AssetVersion.cs |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Assets/Launch/Common/AssetVersion.cs b/Assets/Launch/Common/AssetVersion.cs
index e68bf5a..3440015 100644
--- a/Assets/Launch/Common/AssetVersion.cs
+++ b/Assets/Launch/Common/AssetVersion.cs
@@ -1,5 +1,6 @@
 锘縰sing UnityEngine;
 using System.IO;
+using System.Collections.Generic;
 
 namespace LaunchCommon
 {
@@ -52,9 +53,8 @@
             }
         }
 
-
-
-        public bool CheckLocalFileValid()
+        //checkList 鐢ㄤ簬澶栭儴妫�鏌ユ枃浠朵笅杞藉悗鏄惁涓�鑷达紝涓嶅寘鍚病鏈夋枃浠剁殑鎯呭喌
+        public bool CheckLocalFileValid(List<bool> checkList = null)
         {
             string path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
             var fileInfo = new FileInfo(path);
@@ -66,12 +66,20 @@
             }
             if (fileInfo.Length != size)
             {
+                if (checkList != null && checkList.Count == 0)
+                {
+                    checkList.Add(false);
+                }
                 Debug.LogFormat("{0}鏂囦欢澶у皬涓嶅{1}-{2}", path, size, fileInfo.Length);
                 return false;
             }
             var fileMD5 = FileExtersion.GetMD5HashFromFile(path);
             if (fileMD5 != md5)
             {
+                if (checkList != null && checkList.Count == 0)
+                {
+                    checkList.Add(false);
+                }
                 Debug.LogFormat("{0}鏂囦欢md5涓嶅{1}-{2}", path, md5, fileMD5);
                 return false;
             }

--
Gitblit v1.8.0