From 76c25c94d78c8d7755965c3e9d95673bd7335d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 19 May 2022 18:34:52 +0800 Subject: [PATCH] update Program.cs --- ZR.Admin.WebApi/Program.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ZR.Admin.WebApi/Program.cs b/ZR.Admin.WebApi/Program.cs index 978b705..749772f 100644 --- a/ZR.Admin.WebApi/Program.cs +++ b/ZR.Admin.WebApi/Program.cs @@ -82,11 +82,8 @@ builder.Services.AddSwaggerConfig(); var app = builder.Build(); -if (app.Environment.IsDevelopment()) -{ - app.UseSwagger(); - app.UseSwaggerUI(); -} +app.UseSwagger(); + //使可以多次多去body内容 app.Use((context, next) => {