feat 电子餐券

This commit is contained in:
2024-08-14 15:07:08 +08:00
parent ee86311697
commit 4f7b984dfc
27 changed files with 552 additions and 106 deletions

View File

@@ -1,4 +1,3 @@
using Gateway;
public class Program
@@ -8,13 +7,14 @@ public class Program
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((context, builder) =>
{
builder.AddJsonFile("ocelot.json", true, true);
if (context.HostingEnvironment.IsProduction())
{
builder.AddJsonFile("ocelot.json", true, true);
}
builder.AddJsonFile($"ocelot.{context.HostingEnvironment.EnvironmentName}.json", true, true);
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
})
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
.Build().Run();
}
}
}