forked from sin365/AxibugEmuOnline
url解码
This commit is contained in:
parent
360ea2f579
commit
2e67b7ccd9
@ -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))
|
||||
{
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user