Merge commit 'refs/pull/11/head' of https://gitee.com/izory/ZrAdminNetCore

This commit is contained in:
不做码农
2022-07-01 22:18:32 +08:00
16 changed files with 90 additions and 129 deletions

View File

@@ -55,7 +55,7 @@ builder.Services.AddAuthentication(options =>
o.TokenValidationParameters = JwtUtil.ValidParameters();
});
InternalApp.InternalServices = builder.Services;
//InternalApp.InternalServices = builder.Services;
builder.Services.AddAppService();
builder.Services.AddSingleton(new AppSettings(builder.Configuration));
//开启计划任务
@@ -81,7 +81,8 @@ builder.Services.AddMvc(options =>
builder.Services.AddSwaggerConfig();
var app = builder.Build();
//InternalApp.ServiceProvider = app.Services;
//app.Services.InitDb();
app.UseSwagger();
//使可以多次多去body内容