diff --git a/IRaCIS.Core.API/_ServiceExtensions/SwaggerSetup.cs b/IRaCIS.Core.API/_ServiceExtensions/SwaggerSetup.cs index 2552950d0..5059668bf 100644 --- a/IRaCIS.Core.API/_ServiceExtensions/SwaggerSetup.cs +++ b/IRaCIS.Core.API/_ServiceExtensions/SwaggerSetup.cs @@ -119,6 +119,9 @@ public static class SwaggerSetup //DefaultModelsExpandDepth设置为 - 1 可不显示models options.DefaultModelsExpandDepth(-1); + + // 关键一句:关闭外网校验 + options.ConfigObject.ValidatorUrl = null; }); } diff --git a/IRaCIS.Core.Application/TestService.cs b/IRaCIS.Core.Application/TestService.cs index 4eb50b0db..df5f8df92 100644 --- a/IRaCIS.Core.Application/TestService.cs +++ b/IRaCIS.Core.Application/TestService.cs @@ -66,6 +66,7 @@ namespace IRaCIS.Core.Application.Service /// /// [AllowAnonymous] + [HttpGet] public async Task ImageAddExtralField( [FromServices] IRepository _instanceRepository, [FromServices] IRepository _studyRepository,