From 2e67b7ccd9ab7b50783431b10d852963b72999f5 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Wed, 14 Aug 2024 13:20:52 +0800 Subject: [PATCH] =?UTF-8?q?url=E8=A7=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Script/Manager/RomLib/RomFile.cs | 1 + .../Assets/Script/Manager/RomLib/RomLib.cs | 18 ++++++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomFile.cs b/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomFile.cs index 850718d..e334da0 100644 --- a/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomFile.cs +++ b/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomFile.cs @@ -104,6 +104,7 @@ namespace AxibugEmuOnline.Client { webData = resp_RomInfo; fileName = Path.GetFileName(webData.url); + fileName = System.Net.WebUtility.UrlDecode(fileName); if (File.Exists(LocalFilePath)) { diff --git a/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomLib.cs b/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomLib.cs index 351ae66..94047f2 100644 --- a/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomLib.cs +++ b/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomLib.cs @@ -1,9 +1,6 @@ using AxibugEmuOnline.Client.ClientCore; using System; using System.Collections.Generic; -using System.Security.Cryptography; -using System.Text; -using UnityEngine; namespace AxibugEmuOnline.Client { @@ -53,14 +50,15 @@ namespace AxibugEmuOnline.Client public static string CalcHash(byte[] data) { - var hashBytes = MD5.Create().ComputeHash(data); - StringBuilder sb = new StringBuilder(); - foreach (byte b in hashBytes) - { - sb.Append(b.ToString("x2")); - } + return string.Empty; //todo : 等待远程仓库敲定hash算法 + //var hashBytes = MD5.Create().ComputeHash(data); + //StringBuilder sb = new StringBuilder(); + //foreach (byte b in hashBytes) + //{ + // sb.Append(b.ToString("x2")); + //} - return sb.ToString(); + //return sb.ToString(); } } }