feat: 完善请求日志过滤
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
{
|
||||
public string Phone { get; set; }
|
||||
|
||||
public string? Uuid { get; set; }
|
||||
public string Uuid { get; set; }
|
||||
|
||||
public string? Code { get; set; }
|
||||
public string Code { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Lazy.Captcha.Core.Generator;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Volo.Abp;
|
||||
using Volo.Abp.BackgroundWorkers;
|
||||
using Volo.Abp.BackgroundWorkers.Quartz;
|
||||
@@ -24,7 +25,11 @@ namespace Yi.Framework.Rbac.Application
|
||||
{
|
||||
var service = context.Services;
|
||||
|
||||
service.AddCaptcha();
|
||||
service.AddCaptcha(options =>
|
||||
{
|
||||
options.CaptchaType = CaptchaType.ARITHMETIC;
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public async override Task OnApplicationInitializationAsync(ApplicationInitializationContext context)
|
||||
|
||||
@@ -67,9 +67,9 @@ namespace Yi.Abp.Web
|
||||
Configure<AbpAuditingOptions>(optios =>
|
||||
{
|
||||
//默认关闭,开启会有大量的审计日志
|
||||
optios.IsEnabled = false;
|
||||
optios.IsEnabled = true;
|
||||
//审计日志过滤器
|
||||
optios.AlwaysLogSelectors.Add(x => Task.FromResult(true));
|
||||
optios.AlwaysLogSelectors.Add(x => Task.FromResult(!x.Url.StartsWith("/api/app/file/")));
|
||||
});
|
||||
|
||||
//采用furion格式的规范化api,默认不开启,使用abp优雅的方式
|
||||
|
||||
Reference in New Issue
Block a user