From c3bbfe2736a773f9f03fa25c0575608e9ee6c13c Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 09 十二月 2025 17:12:38 +0800
Subject: [PATCH] 0312 优化字符串拼接 - 改名
---
Main/System/AssetVersion/AssetVersion.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Main/System/AssetVersion/AssetVersion.cs b/Main/System/AssetVersion/AssetVersion.cs
index ea58d10..2d98fd1 100644
--- a/Main/System/AssetVersion/AssetVersion.cs
+++ b/Main/System/AssetVersion/AssetVersion.cs
@@ -82,7 +82,7 @@
{
if (_completeFile)
{
- var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
+ var path = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
var fileInfo = new FileInfo(path);
if (!fileInfo.Exists)
@@ -107,7 +107,7 @@
{
if (extersion == ".manifest" || extersion == ".bytes" || extersion == ".txt" || extersion == ".dll")
{
- var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
+ var path = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
var fileInfo = new FileInfo(path);
if (!fileInfo.Exists || fileInfo.Length != size || md5 != FileExtersion.GetMD5HashFromFile(path))
@@ -117,10 +117,10 @@
}
else if (string.IsNullOrEmpty(extersion) || extersion.Length == 0)
{
- var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
+ var path = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
var fileInfo = new FileInfo(path);
- var manifestAssetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact(m_RelativePath, ".manifest"));
+ var manifestAssetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Concat(m_RelativePath, ".manifest"));
if (!fileInfo.Exists || fileInfo.Length != size || manifestAssetVersion == null || !manifestAssetVersion.CheckLocalFileValid(false))
{
return false;
@@ -128,7 +128,7 @@
}
else
{
- var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
+ var path = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
var fileInfo = new FileInfo(path);
if (!fileInfo.Exists || fileInfo.Length != size)
{
--
Gitblit v1.8.0