Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e53048a980 |
+6
-1
@@ -210,7 +210,7 @@ public static class SimApiExtensions
|
||||
builder.AddSingleton<SimApiStorage>();
|
||||
}
|
||||
|
||||
if (simApiOptions.EnableSimApiException)
|
||||
if (simApiOptions.EnableSimApiResponseFilter)
|
||||
{
|
||||
builder.AddControllers(opt => opt.Filters.Add<SimApiResponseFilter>())
|
||||
.AddJsonOptions(opt => opt.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase);
|
||||
@@ -235,6 +235,11 @@ public static class SimApiExtensions
|
||||
builder.Services.GetService<SimApiStorage>();
|
||||
}
|
||||
|
||||
if (options.EnableSimApiResponseFilter)
|
||||
{
|
||||
logger.LogInformation("开始配置SimApiResponseFilter...");
|
||||
}
|
||||
|
||||
if (options.EnableCoceSdk)
|
||||
{
|
||||
logger.LogInformation("开始配置CoceAppSdk...\nApi入口: {ApiUrl}\nAuth入口:{AuthUrl}n\nAppId: {AppId}",
|
||||
|
||||
Reference in New Issue
Block a user