From 469ea285f2a0084199e84f842b90f4fca4785a70 Mon Sep 17 00:00:00 2001 From: Dai Mr <1822802785@qq.com> Date: Tue, 20 May 2025 17:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BASwagger=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/JiShe.CollectBus.Host/CollectBusHostModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/JiShe.CollectBus.Host/CollectBusHostModule.cs b/web/JiShe.CollectBus.Host/CollectBusHostModule.cs index e451a1d..1666341 100644 --- a/web/JiShe.CollectBus.Host/CollectBusHostModule.cs +++ b/web/JiShe.CollectBus.Host/CollectBusHostModule.cs @@ -76,8 +76,8 @@ namespace JiShe.CollectBus.Host app.UseCors(CollectBusHostConst.DefaultCorsPolicyName); app.UseAuthentication(); app.UseAuthorization(); - if (env.IsDevelopment()) - { + //if (env.IsDevelopment()) + //{ app.UseSwagger(); app.UseAbpSwaggerUI(options => { @@ -88,7 +88,7 @@ namespace JiShe.CollectBus.Host options.DocExpansion(DocExpansion.None); options.DefaultModelsExpandDepth(-1); }); - } + //} app.UseAuditing(); app.UseAbpSerilogEnrichers(); app.UseUnitOfWork();