Skip to content

Commit f077b52

Browse files
committed
注释掉 SwaggerExtensions.cs 中的服务器配置
1 parent 530a712 commit f077b52

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/LinCms.Web/Startup/SwaggerExtensions.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ public static IServiceCollection AddSwaggerGen(this IServiceCollection services)
154154
Log.Logger.Warning(ex.Message);
155155
}
156156

157-
#if !DEBUG
158-
options.AddServer(new OpenApiServer()
159-
{
160-
Url = siteOption.ApiDomain,
161-
Description = "服务端"
162-
});
163-
#endif
157+
//#if !DEBUG
158+
// options.AddServer(new OpenApiServer()
159+
// {
160+
// Url = siteOption.ApiDomain,
161+
// Description = "服务端"
162+
// });
163+
//#endif
164164

165165
options.CustomOperationIds(apiDesc =>
166166
{

0 commit comments

Comments
 (0)