瀏覽代碼

提交

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

Loading…
取消
儲存