From f43b7df8400f4fcffc9f19dca0888d61e2b33d5f Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 12 三月 2025 18:41:52 +0800
Subject: [PATCH] WMS系统添加PDA权限,PDA程序

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs"
index b0f70df..3037073 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/Extensions/SwaggerSetup.cs"
@@ -1,4 +1,4 @@
-锘縰sing log4net;
+锘�
 using Microsoft.Extensions.DependencyInjection;
 using Microsoft.OpenApi.Models;
 using System;
@@ -18,9 +18,6 @@
     /// </summary>
     public static class SwaggerSetup
     {
-
-        private static readonly ILog log =
-        LogManager.GetLogger(typeof(SwaggerSetup));
         /// <summary>
         /// Swagger
         /// </summary>
@@ -30,7 +27,7 @@
         {
             if (services == null) throw new ArgumentNullException(nameof(services));
 
-            var basePath = AppContext.BaseDirectory;
+            var basePath = AppDomain.CurrentDomain.BaseDirectory;
             //var basePath2 = Microsoft.DotNet.PlatformAbstractions.ApplicationEnvironment.ApplicationBasePath;
             var ApiName = AppSettings.app(new string[] { "ApiName" });
 
@@ -53,18 +50,19 @@
                 c.UseInlineDefinitionsForEnums();
                 try
                 {
-                    //杩欎釜灏辨槸鍒氬垰閰嶇疆鐨剎ml鏂囦欢鍚�
-                    //var xmlPath = Path.Combine(basePath, "Blog.Core.xml");
+                    var xmlPath = Path.Combine(basePath, "WIDESEA_WMSServer.xml");
                     //榛樿鐨勭浜屼釜鍙傛暟鏄痜alse锛岃繖涓槸controller鐨勬敞閲婏紝璁板緱淇敼
-                    //c.IncludeXmlComments(xmlPath, true);
+                    c.IncludeXmlComments(xmlPath, true);
 
-                    //杩欎釜灏辨槸Model灞傜殑xml鏂囦欢鍚�
-                    //var xmlModelPath = Path.Combine(basePath, "Blog.Core.Model.xml");
-                    //c.IncludeXmlComments(xmlModelPath);
+                    var xmlModelPath = Path.Combine(basePath, "WIDESEA_Model.xml");
+                    c.IncludeXmlComments(xmlModelPath);
+
+                    var xmlDTOPath = Path.Combine(basePath, "WIDESEA_DTO.xml");
+                    c.IncludeXmlComments(xmlDTOPath);
                 }
                 catch (Exception ex)
                 {
-                    log.Error("Blog.Core.xml鍜孊log.Core.Model.xml 涓㈠け锛岃妫�鏌ュ苟鎷疯礉銆俓n" + ex.Message);
+                    //log.Error("Blog.Core.xml鍜孊log.Core.Model.xml 涓㈠け锛岃妫�鏌ュ苟鎷疯礉銆俓n" + ex.Message);
                 }
 
                 // 寮�鍚姞鏉冨皬閿�

--
Gitblit v1.9.3