From bb7d5c8bfad50f83b2aa5cf17e5407d13f53a778 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 25 一月 2021 21:34:59 +0800
Subject: [PATCH] 0312 调试下载输出
---
System/AssetVersion/AssetVersion.cs | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/System/AssetVersion/AssetVersion.cs b/System/AssetVersion/AssetVersion.cs
index 02ffec3..743d59a 100644
--- a/System/AssetVersion/AssetVersion.cs
+++ b/System/AssetVersion/AssetVersion.cs
@@ -89,7 +89,23 @@
var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
var fileInfo = new FileInfo(path);
- return fileInfo.Exists && fileInfo.Length == size && md5 == FileExtersion.GetMD5HashFromFile(path);
+ if (!fileInfo.Exists)
+ {
+ Debug.LogFormat("鏂囦欢涓嶅瓨鍦� {0}", path);
+ return false;
+ }
+ if (fileInfo.Length != size)
+ {
+ Debug.LogFormat("{0}鏂囦欢澶у皬涓嶅{1}-{2}", path, size, fileInfo.Length);
+ return false;
+ }
+ var fileMD5 = FileExtersion.GetMD5HashFromFile(path);
+ if (fileMD5 != md5)
+ {
+ Debug.LogFormat("{0}鏂囦欢md5涓嶅{1}-{2}", path, md5, fileMD5);
+ return false;
+ }
+ return true;
}
else
{
--
Gitblit v1.8.0