bug修复

master
zhangxiaofeng 6 months ago
parent 64b3a566de
commit ccefa272f3

@ -39,12 +39,18 @@ namespace EntrustSettle.Extensions.Middlewares
}
var path = context.Request.Path.ToString();
if (path.Contains("index.html") || path.Contains("swagger.json"))
if (!path.Contains("/api"))
{
await _next(context);
return;
}
//if (path.Contains("index.html") || path.Contains("swagger.json"))
//{
// await _next(context);
// return;
//}
// 判断如果请求或响应中含有文件上传,不记录日志
//if (context.Request.HasFormContentType && context.Request.Form.Files.Count > 0)
//{

Loading…
Cancel
Save