update option

This commit is contained in:
2024-12-23 22:11:00 +08:00
parent bbc2806995
commit e53048a980
+6 -1
View File
@@ -210,7 +210,7 @@ public static class SimApiExtensions
builder.AddSingleton<SimApiStorage>(); builder.AddSingleton<SimApiStorage>();
} }
if (simApiOptions.EnableSimApiException) if (simApiOptions.EnableSimApiResponseFilter)
{ {
builder.AddControllers(opt => opt.Filters.Add<SimApiResponseFilter>()) builder.AddControllers(opt => opt.Filters.Add<SimApiResponseFilter>())
.AddJsonOptions(opt => opt.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase); .AddJsonOptions(opt => opt.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase);
@@ -235,6 +235,11 @@ public static class SimApiExtensions
builder.Services.GetService<SimApiStorage>(); builder.Services.GetService<SimApiStorage>();
} }
if (options.EnableSimApiResponseFilter)
{
logger.LogInformation("开始配置SimApiResponseFilter...");
}
if (options.EnableCoceSdk) if (options.EnableCoceSdk)
{ {
logger.LogInformation("开始配置CoceAppSdk...\nApi入口: {ApiUrl}\nAuth入口:{AuthUrl}n\nAppId: {AppId}", logger.LogInformation("开始配置CoceAppSdk...\nApi入口: {ApiUrl}\nAuth入口:{AuthUrl}n\nAppId: {AppId}",