From 790d751c1fc11ea2277335aa7eea0a00d5ae46d4 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Thu, 25 Dec 2025 13:38:29 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9swagger=20=E6=B5=8B=E8=AF=95?=
=?UTF-8?q?=E5=8F=91=E5=B8=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.API/_ServiceExtensions/SwaggerSetup.cs | 3 +++
IRaCIS.Core.Application/TestService.cs | 1 +
2 files changed, 4 insertions(+)
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,