From 6a00bae1d56005b2ff2216620a011875d862fbd9 Mon Sep 17 00:00:00 2001 From: kyy <3283105747@qq.com> Date: 星期三, 10 九月 2025 18:15:22 +0800 Subject: [PATCH] 1、异常单 --- 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