From 30561a499608d9591b8caa4462709a1fbaf76447 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期五, 14 十一月 2025 16:04:49 +0800
Subject: [PATCH] 1.期初入库优化

---
 Startup.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/Startup.cs b/Startup.cs
index caf1a01..1f040a6 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -30,6 +30,10 @@
         services.Configure<AppSettings>(
             Configuration.GetSection("AppSettings"));
 
+        // 娣诲姞鏈嶅姟娉ㄥ唽锛岃姹傚ご淇℃伅浼犻�掋��
+        services.AddHttpContextAccessor();
+        services.AddScoped<RequestInfo>();
+
         services.AddSwaggerGen(c =>
         {
             c.SwaggerDoc("v1",
@@ -38,7 +42,7 @@
             var xmlFile =
                 $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
             var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
-            //c.IncludeXmlComments(xmlPath, true);
+            c.IncludeXmlComments(xmlPath, true);
         });
 
         //閰嶇疆JSON.NET

--
Gitblit v1.9.3