Compare commits

..

No commits in common. "9d5e0d0ed4e6f09b451451c73859d8dd2221b08d" and "a940bc1cdbefc82afce0e699b9bda5160e1dbcf8" have entirely different histories.

4 changed files with 72 additions and 97 deletions

Binary file not shown.

View File

@ -10,7 +10,6 @@ namespace BLL
using System.Linq;
using System.Net;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
/// <summary>
@ -1282,25 +1281,6 @@ namespace BLL
IRestResponse response = client.Execute(request);
return response.Content;
}
public static string GetMD5(string str)
{
using (MD5 md5 = MD5.Create())
{
// 将输入字符串转换为字节数组并计算哈希值
byte[] inputBytes = Encoding.ASCII.GetBytes(str);
byte[] hashBytes = md5.ComputeHash(inputBytes);
// 将字节数组转换为十六进制字符串
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hashBytes.Length; i++)
{
sb.Append(hashBytes[i].ToString("X2"));
}
return sb.ToString();
}
}
}
}

View File

@ -1,5 +1,4 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OnlineEditingPrivate.aspx.cs" Inherits="FineUIPro.Web.AttachFile.OnlineEditingPrivate" %>
<%@ Import Namespace="BLL" %>
<!DOCTYPE html>
@ -160,8 +159,7 @@
}
};
// var urlString = "https://cloud.e-iceblue.cn/demo/sample.docx";
<%-- //var urlString = "<%=BLL.Funs.SGGLUrl%>" + "<%=PCUrl%>";--%>
var urlString = "<%=urlString%>";
var urlString = "<%=BLL.Funs.SGGLUrl%>" + "<%=PCUrl%>";
var arrfn = urlString.split(".");
var strp = arrfn[arrfn.length - 1];
@ -203,7 +201,7 @@
fileInfo: {
name: '',
ext: '',
primary: '<%=urlStringMD5%>',
primary: urlString,
creator: '',
createTime: new Date('20210505')
},

View File

@ -60,8 +60,6 @@ namespace FineUIPro.Web.AttachFile
ViewState["editorMode"] = value;
}
}
public string urlString = String.Empty;
public string urlStringMD5 = String.Empty;
#endregion
protected void Page_Load(object sender, EventArgs e)
@ -74,8 +72,7 @@ namespace FineUIPro.Web.AttachFile
PCUrl = Request.Params["fileUrl"];
editorMode = Request.Params["editorMode"];
urlString = Funs.SGGLUrl + PCUrl;
urlStringMD5 = Funs.GetMD5(urlString);
}
}
}