|
|
@@ -78,22 +78,26 @@ namespace BPA.SAAS.Manage.Web.Core |
|
|
|
|
|
|
|
// 判断是否请求成功,没有异常就是请求成功 |
|
|
|
var isRequestSucceed = actionContext.Exception == null; |
|
|
|
try |
|
|
|
if (requestUrl.ToUpper().Contains("ExternalPlatform".ToUpper())) |
|
|
|
{ |
|
|
|
await SqlSugarDb.Db.Insertable(new BPA_ThirdpartyRequestLog() |
|
|
|
{ |
|
|
|
CreateBy=DateTime.Now.ToString(), |
|
|
|
GroupId= CurrentUser.GroupId, |
|
|
|
RequestUrl= requestUrl, |
|
|
|
ReauestMethod= httpRequest.Method, |
|
|
|
ResultParm= returnResult == null ? "" : JsonConvert.SerializeObject(returnResult), |
|
|
|
IP= remoteIPv4 |
|
|
|
}).ExecuteCommandAsync(); |
|
|
|
try |
|
|
|
{ |
|
|
|
await SqlSugarDb.Db.Insertable(new BPA_ThirdpartyRequestLog() |
|
|
|
{ |
|
|
|
CreateBy = DateTime.Now.ToString(), |
|
|
|
GroupId = CurrentUser.GroupId, |
|
|
|
RequestUrl = requestUrl, |
|
|
|
ReauestMethod = httpRequest.Method, |
|
|
|
ResultParm = returnResult == null ? "" : JsonConvert.SerializeObject(returnResult), |
|
|
|
IP = remoteIPv4 |
|
|
|
}).ExecuteCommandAsync(); |
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception e) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |