From 930f389ddb381f13e0adef7bba580a7ac3c99f2b Mon Sep 17 00:00:00 2001 From: kyy <3283105747@qq.com> Date: 星期五, 26 九月 2025 10:55:20 +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