|
|
@@ -55,10 +55,12 @@ namespace BPA.SAAS.Manage.Web.Core |
|
|
|
// 获取请求的方法 |
|
|
|
var method = actionDescriptor.MethodInfo; |
|
|
|
|
|
|
|
// 获取请求参数(写入日志,需序列化成字符串后存储) |
|
|
|
var parameters = context.ActionArguments; |
|
|
|
|
|
|
|
if (requestUrl.ToUpper().Contains("ExternalPlatform".ToUpper())) |
|
|
|
{ |
|
|
|
// 获取请求参数(写入日志,需序列化成字符串后存储) |
|
|
|
var parameters = context.ActionArguments; |
|
|
|
|
|
|
|
var key= httpRequest.Headers["key"]; |
|
|
|
var sign= httpRequest.Headers["sign"]; |
|
|
|
List<PropertyInfo> proplist = new List<PropertyInfo>(); |
|
|
@@ -84,11 +86,13 @@ namespace BPA.SAAS.Manage.Web.Core |
|
|
|
{ |
|
|
|
await SqlSugarDb.Db.Insertable(new BPA_ThirdpartyRequestLog() |
|
|
|
{ |
|
|
|
Id=Guid.NewGuid().ToString(), |
|
|
|
CreateBy = DateTime.Now.ToString(), |
|
|
|
GroupId = CurrentUser.GroupId, |
|
|
|
RequestUrl = requestUrl, |
|
|
|
ReauestMethod = httpRequest.Method, |
|
|
|
ResultParm = returnResult == null ? "" : JsonConvert.SerializeObject(returnResult), |
|
|
|
ReauestParm= JsonConvert.SerializeObject(parameters), |
|
|
|
ResultParm = !isRequestSucceed? actionContext.Exception.ToString() : JsonConvert.SerializeObject(returnResult), |
|
|
|
IP = remoteIPv4 |
|
|
|
}).ExecuteCommandAsync(); |
|
|
|
|
|
|
|