From 94d0b18fa47a92a1cb4d1fef4520d35ef2c2c322 Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期二, 16 十二月 2025 21:56:49 +0800
Subject: [PATCH] 产能排产相关后端更新
---
WebApi/Gs.HostIIS/Program.cs | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/WebApi/Gs.HostIIS/Program.cs b/WebApi/Gs.HostIIS/Program.cs
index 931b65e..f1938f3 100644
--- a/WebApi/Gs.HostIIS/Program.cs
+++ b/WebApi/Gs.HostIIS/Program.cs
@@ -28,8 +28,8 @@
options.AddPolicy("AllowAll", builder =>
{
builder.AllowAnyOrigin()
- .AllowAnyMethod()
- .AllowAnyHeader();
+ .AllowAnyMethod()
+ .AllowAnyHeader();
});
});
builder.Services.AddCustomConvention();
@@ -73,8 +73,7 @@
//娣诲姞瀹夊叏瀹氫箟
c.AddSecurityDefinition("Token", new OpenApiSecurityScheme
{
- Description =
- "璇疯緭鍏oken,鏍煎紡涓猴細token 3fa85f64-5717-4562-b3fc-2c963f66afa6锛堟敞鎰忎腑闂村繀椤绘湁绌烘牸锛�",
+ Description ="璇疯緭鍏oken,鏍煎紡涓猴細token 3fa85f64-5717-4562-b3fc-2c963f66afa6锛堟敞鎰忎腑闂村繀椤绘湁绌烘牸锛�",
Name = "token",
In = ParameterLocation.Header,
Type = SecuritySchemeType.ApiKey,
@@ -111,7 +110,7 @@
});
//娣诲姞涓婁紶璺緞
var _upPath = AppContext.BaseDirectory +
- AppSettingsHelper.getValueByKey("UploadPath");
+ AppSettingsHelper.getValueByKey("UploadPath");
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(_upPath),
--
Gitblit v1.9.3