url解码

This commit is contained in:
ALIENJACK\alien 2024-08-14 13:20:52 +08:00
parent 360ea2f579
commit 2e67b7ccd9
2 changed files with 9 additions and 10 deletions

View File

@ -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))
{

View File

@ -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();
}
}
}