master #29

Merged
sin365 merged 6 commits from Alienjack/AxibugEmuOnline:master into master 2024-08-14 15:59:09 +08:00
2 changed files with 9 additions and 10 deletions
Showing only changes of commit 2e67b7ccd9 - Show all commits

View File

@ -104,6 +104,7 @@ namespace AxibugEmuOnline.Client
{ {
webData = resp_RomInfo; webData = resp_RomInfo;
fileName = Path.GetFileName(webData.url); fileName = Path.GetFileName(webData.url);
fileName = System.Net.WebUtility.UrlDecode(fileName);
if (File.Exists(LocalFilePath)) if (File.Exists(LocalFilePath))
{ {

View File

@ -1,9 +1,6 @@
using AxibugEmuOnline.Client.ClientCore; using AxibugEmuOnline.Client.ClientCore;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using UnityEngine;
namespace AxibugEmuOnline.Client namespace AxibugEmuOnline.Client
{ {
@ -53,14 +50,15 @@ namespace AxibugEmuOnline.Client
public static string CalcHash(byte[] data) public static string CalcHash(byte[] data)
{ {
var hashBytes = MD5.Create().ComputeHash(data); return string.Empty; //todo : 等待远程仓库敲定hash算法
StringBuilder sb = new StringBuilder(); //var hashBytes = MD5.Create().ComputeHash(data);
foreach (byte b in hashBytes) //StringBuilder sb = new StringBuilder();
{ //foreach (byte b in hashBytes)
sb.Append(b.ToString("x2")); //{
} // sb.Append(b.ToString("x2"));
//}
return sb.ToString(); //return sb.ToString();
} }
} }
} }