Compare commits
No commits in common. "9d5e0d0ed4e6f09b451451c73859d8dd2221b08d" and "a940bc1cdbefc82afce0e699b9bda5160e1dbcf8" have entirely different histories.
9d5e0d0ed4
...
a940bc1cdb
Binary file not shown.
|
@ -10,7 +10,6 @@ namespace BLL
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Security.Cryptography;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1282,25 +1281,6 @@ namespace BLL
|
||||||
IRestResponse response = client.Execute(request);
|
IRestResponse response = client.Execute(request);
|
||||||
return response.Content;
|
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OnlineEditingPrivate.aspx.cs" Inherits="FineUIPro.Web.AttachFile.OnlineEditingPrivate" %>
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OnlineEditingPrivate.aspx.cs" Inherits="FineUIPro.Web.AttachFile.OnlineEditingPrivate" %>
|
||||||
<%@ Import Namespace="BLL" %>
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
@ -160,8 +159,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// var urlString = "https://cloud.e-iceblue.cn/demo/sample.docx";
|
// var urlString = "https://cloud.e-iceblue.cn/demo/sample.docx";
|
||||||
<%-- //var urlString = "<%=BLL.Funs.SGGLUrl%>" + "<%=PCUrl%>";--%>
|
var urlString = "<%=BLL.Funs.SGGLUrl%>" + "<%=PCUrl%>";
|
||||||
var urlString = "<%=urlString%>";
|
|
||||||
|
|
||||||
var arrfn = urlString.split(".");
|
var arrfn = urlString.split(".");
|
||||||
var strp = arrfn[arrfn.length - 1];
|
var strp = arrfn[arrfn.length - 1];
|
||||||
|
@ -203,7 +201,7 @@
|
||||||
fileInfo: {
|
fileInfo: {
|
||||||
name: '',
|
name: '',
|
||||||
ext: '',
|
ext: '',
|
||||||
primary: '<%=urlStringMD5%>',
|
primary: urlString,
|
||||||
creator: '',
|
creator: '',
|
||||||
createTime: new Date('20210505')
|
createTime: new Date('20210505')
|
||||||
},
|
},
|
||||||
|
|
|
@ -60,8 +60,6 @@ namespace FineUIPro.Web.AttachFile
|
||||||
ViewState["editorMode"] = value;
|
ViewState["editorMode"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public string urlString = String.Empty;
|
|
||||||
public string urlStringMD5 = String.Empty;
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
@ -74,8 +72,7 @@ namespace FineUIPro.Web.AttachFile
|
||||||
PCUrl = Request.Params["fileUrl"];
|
PCUrl = Request.Params["fileUrl"];
|
||||||
editorMode = Request.Params["editorMode"];
|
editorMode = Request.Params["editorMode"];
|
||||||
|
|
||||||
urlString = Funs.SGGLUrl + PCUrl;
|
|
||||||
urlStringMD5 = Funs.GetMD5(urlString);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue