|
|
|
@ -18,6 +18,7 @@ using BP.WF.Template.SFlow;
|
|
|
|
|
using BP.WF.Template.Frm;
|
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
using System.Web.Configuration;
|
|
|
|
|
using System.Net;
|
|
|
|
|
|
|
|
|
|
namespace BP.WF.HttpHandler
|
|
|
|
|
{
|
|
|
|
@ -5694,6 +5695,7 @@ namespace BP.WF.HttpHandler
|
|
|
|
|
string filepath = "";
|
|
|
|
|
if (dbAtt.AthSaveWay == AthSaveWay.IISServer)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
#region 解密下载
|
|
|
|
|
//1、先解密到本地
|
|
|
|
|
filepath = downDB.FileFullName + ".tmp";
|
|
|
|
@ -5735,7 +5737,38 @@ namespace BP.WF.HttpHandler
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
#region 触发接口 BKGY
|
|
|
|
|
//string clientIP = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
|
|
|
|
|
string strHostName = System.Net.Dns.GetHostName();
|
|
|
|
|
//string clientIPAddress = System.Net.Dns.GetHostAddresses(strHostName).GetValue(1).ToString();
|
|
|
|
|
string clientIPAddress = "";
|
|
|
|
|
IPAddress[] addresses = Dns.GetHostAddresses(strHostName);
|
|
|
|
|
foreach (IPAddress addr in addresses)
|
|
|
|
|
{
|
|
|
|
|
if (addr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
|
|
|
|
|
{
|
|
|
|
|
clientIPAddress += addr.ToString();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string url = "http://172.15.89.222:8080/Personnel/Personnelapi/LogRecording";
|
|
|
|
|
string questbody = "";
|
|
|
|
|
string result = "";
|
|
|
|
|
questbody += "{\r \"OperateUser\": \"";
|
|
|
|
|
questbody += BP.Web.WebUser.No;
|
|
|
|
|
questbody += "\",\r \"Operate\": \"";
|
|
|
|
|
questbody += "下载了" + downDB.FileName + "文件";
|
|
|
|
|
questbody += "\",\r \"OperateIp\": \"";
|
|
|
|
|
questbody += clientIPAddress;
|
|
|
|
|
questbody += "\",\r \"Flag\": \"";
|
|
|
|
|
questbody += "1";
|
|
|
|
|
questbody += "\",\r}";
|
|
|
|
|
|
|
|
|
|
result = PubGlo.HttpPostConnect(url, questbody, "POST", true);
|
|
|
|
|
if (DataType.IsNullOrEmpty(result) == true)
|
|
|
|
|
return "err@请求失败";
|
|
|
|
|
#endregion
|
|
|
|
|
if (dbAtt.AthSaveWay == AthSaveWay.FTPServer)
|
|
|
|
|
{
|
|
|
|
|
//下载文件的临时位置
|
|
|
|
@ -6071,6 +6104,38 @@ namespace BP.WF.HttpHandler
|
|
|
|
|
}
|
|
|
|
|
//新文件目录
|
|
|
|
|
copyToPath = copyToPath + "//" + db.FileName;
|
|
|
|
|
#region 触发接口 BKGY
|
|
|
|
|
//string clientIP = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
|
|
|
|
|
string strHostName = System.Net.Dns.GetHostName();
|
|
|
|
|
//string clientIPAddress = System.Net.Dns.GetHostAddresses(strHostName).GetValue(1).ToString();
|
|
|
|
|
string clientIPAddress = "";
|
|
|
|
|
IPAddress[] addresses = Dns.GetHostAddresses(strHostName);
|
|
|
|
|
foreach (IPAddress addr in addresses)
|
|
|
|
|
{
|
|
|
|
|
if (addr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
|
|
|
|
|
{
|
|
|
|
|
clientIPAddress += addr.ToString();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string urll = "http://172.15.89.222:8080/Personnel/Personnelapi/LogRecording";
|
|
|
|
|
string questbody = "";
|
|
|
|
|
string result = "";
|
|
|
|
|
questbody += "{\r \"OperateUser\": \"";
|
|
|
|
|
questbody += BP.Web.WebUser.No;
|
|
|
|
|
questbody += "\",\r \"Operate\": \"";
|
|
|
|
|
questbody += "下载了" + db.FileName + "文件";
|
|
|
|
|
questbody += "\",\r \"OperateIp\": \"";
|
|
|
|
|
questbody += clientIPAddress;
|
|
|
|
|
questbody += "\",\r \"Flag\": \"";
|
|
|
|
|
questbody += "1";
|
|
|
|
|
questbody += "\",\r}";
|
|
|
|
|
|
|
|
|
|
result = PubGlo.HttpPostConnect(urll, questbody, "POST", true);
|
|
|
|
|
if (DataType.IsNullOrEmpty(result) == true)
|
|
|
|
|
return "err@请求失败";
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
if (File.Exists(fileTempDecryPath) == true)
|
|
|
|
|
{
|
|
|
|
|