This commit is contained in:
tanglong 2025-12-22 14:41:01 +08:00
parent 09fa7212a9
commit feca273bcc
2 changed files with 8 additions and 8 deletions

View File

@ -19,7 +19,7 @@ namespace YD_WeChatApplet
{
serverOptions.Limits.MaxRequestBodySize = 10485760;
});
webBuilder.UseKestrel().UseUrls("http://*:9994");
webBuilder.UseKestrel().UseUrls("http://*:9993");
webBuilder.UseIIS();
webBuilder.UseStartup<Startup>();
}).UseServiceProviderFactory(new AutofacServiceProviderFactory());

View File

@ -281,13 +281,13 @@ namespace YD_WeChatApplet
//配置HttpContext
app.UseStaticHttpContext();
//app.UseSwagger();
//app.UseSwaggerUI(c =>
//{
// //2个下拉框选项 选择对应的文档
// c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_WeChatApplet.Api");
// c.RoutePrefix = "";
//});
app.UseSwagger();
app.UseSwaggerUI(c =>
{
//2个下拉框选项 选择对应的文档
c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_WeChatApplet.Api");
c.RoutePrefix = "";
});
app.UseRouting();
app.UseCors();