From d85a4b97325020b7efe1a6cdbd55025c6408cec9 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期五, 25 十月 2024 10:12:06 +0800
Subject: [PATCH] 更新

---
 WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs
index 54f61d9..73d44c1 100644
--- a/WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs
+++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/Extensions/SwaggerSetup.cs
@@ -30,7 +30,6 @@
             if (services == null) throw new ArgumentNullException(nameof(services));
 
             var basePath = AppContext.BaseDirectory;
-            //var basePath2 = Microsoft.DotNet.PlatformAbstractions.ApplicationEnvironment.ApplicationBasePath;
             var ApiName = AppSettings.app(new string[] { "ApiName" });
 
             services.AddSwaggerGen(c =>
@@ -51,13 +50,13 @@
                 try
                 {
                     //杩欎釜灏辨槸鍒氬垰閰嶇疆鐨剎ml鏂囦欢鍚�
-                    //var xmlPath = Path.Combine(basePath, "WIDESEAWCS_Server.xml");
+                    var xmlPath = Path.Combine(basePath, "WIDESEAWCS_Server.xml");
                     //榛樿鐨勭浜屼釜鍙傛暟鏄痜alse锛岃繖涓槸controller鐨勬敞閲婏紝璁板緱淇敼
-                    //c.IncludeXmlComments(xmlPath, true);
+                    c.IncludeXmlComments(xmlPath, true);
 
                     //杩欎釜灏辨槸Model灞傜殑xml鏂囦欢鍚�
-                    //var xmlModelPath = Path.Combine(basePath, "WIDESEAWCS_Server.Model.xml");
-                    //c.IncludeXmlComments(xmlModelPath);
+                    var xmlModelPath = Path.Combine(basePath, "WIDESEAWCS_Server.Model.xml");
+                    c.IncludeXmlComments(xmlModelPath);
                 }
                 catch (Exception ex)
                 {

--
Gitblit v1.9.3