浏览代码

提交

master
gwbvipvip 8 个月前
父节点
当前提交
2c6446ae2b
共有 3 个文件被更改,包括 17 次插入13 次删除
  1. 二进制
     
  2. 二进制
     
  3. +17
    -13
      BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs

二进制
查看文件


二进制
查看文件


+ 17
- 13
BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs 查看文件

@@ -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)
{
}
}
}
}

正在加载...
取消
保存