From bcb3ace56404e29633b39131ae7d8fd8f15f378b Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 10 Aug 2026 16:04:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E8=BF=94=E5=9B=9E-5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessFilter/ProjectExceptionFilter.cs | 2 +- .../BusinessFilter/ProjectExceptionFilter.cs | 2 +- .../LegacyController/ModelActionFilter .cs | 2 +- .../LegacyController/ProjectExceptionFilter.cs | 2 +- .../MinimalAPI/GlobalExceptionHandler.cs | 2 +- .../IRaCIS.Core.Application.xml | 13 ++++++++++--- .../ReadingImageTask/ReadingImageTaskService.cs | 14 ++++++++++++++ .../_IRaCIS/Output/ApiResponseCodeEnum.cs | 5 +++++ 8 files changed, 34 insertions(+), 8 deletions(-) diff --git a/IRC.Core.Dicom/BusinessFilter/ProjectExceptionFilter.cs b/IRC.Core.Dicom/BusinessFilter/ProjectExceptionFilter.cs index 0952bc457..0021a15d9 100644 --- a/IRC.Core.Dicom/BusinessFilter/ProjectExceptionFilter.cs +++ b/IRC.Core.Dicom/BusinessFilter/ProjectExceptionFilter.cs @@ -43,7 +43,7 @@ namespace IRaCIS.Core.SCP.Filter else { context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["Project_ExceptionContactDeveloper"] + (context.Exception.InnerException is null ? (context.Exception.Message /*+ context.Exception.StackTrace*/) - : (context.Exception.InnerException?.Message /*+ context.Exception.InnerException?.StackTrace*/)), ApiResponseCodeEnum.ProgramException)); + : (context.Exception.InnerException?.Message /*+ context.Exception.InnerException?.StackTrace*/)), ApiResponseCodeEnum.BackEndAnomaly)); } diff --git a/IRC.Core.SCP/BusinessFilter/ProjectExceptionFilter.cs b/IRC.Core.SCP/BusinessFilter/ProjectExceptionFilter.cs index 0952bc457..0021a15d9 100644 --- a/IRC.Core.SCP/BusinessFilter/ProjectExceptionFilter.cs +++ b/IRC.Core.SCP/BusinessFilter/ProjectExceptionFilter.cs @@ -43,7 +43,7 @@ namespace IRaCIS.Core.SCP.Filter else { context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["Project_ExceptionContactDeveloper"] + (context.Exception.InnerException is null ? (context.Exception.Message /*+ context.Exception.StackTrace*/) - : (context.Exception.InnerException?.Message /*+ context.Exception.InnerException?.StackTrace*/)), ApiResponseCodeEnum.ProgramException)); + : (context.Exception.InnerException?.Message /*+ context.Exception.InnerException?.StackTrace*/)), ApiResponseCodeEnum.BackEndAnomaly)); } diff --git a/IRaCIS.Core.Application/BusinessFilter/LegacyController/ModelActionFilter .cs b/IRaCIS.Core.Application/BusinessFilter/LegacyController/ModelActionFilter .cs index 65552ebcf..fbdd24ea6 100644 --- a/IRaCIS.Core.Application/BusinessFilter/LegacyController/ModelActionFilter .cs +++ b/IRaCIS.Core.Application/BusinessFilter/LegacyController/ModelActionFilter .cs @@ -75,7 +75,7 @@ public class ModelActionFilter(IStringLocalizer _localizer, IConfiguration _conf //---提供给接口的参数无效。 - context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["ModelAction_InvalidAPIParameter"] + JsonConvert.SerializeObject(validationErrors))); + context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["ModelAction_InvalidAPIParameter"] + JsonConvert.SerializeObject(validationErrors), ApiResponseCodeEnum.BackEndAnomaly)); } } } diff --git a/IRaCIS.Core.Application/BusinessFilter/LegacyController/ProjectExceptionFilter.cs b/IRaCIS.Core.Application/BusinessFilter/LegacyController/ProjectExceptionFilter.cs index eeb70dcc9..c535bacf1 100644 --- a/IRaCIS.Core.Application/BusinessFilter/LegacyController/ProjectExceptionFilter.cs +++ b/IRaCIS.Core.Application/BusinessFilter/LegacyController/ProjectExceptionFilter.cs @@ -49,7 +49,7 @@ public class ProjectExceptionFilter(ILogger _logger, ISt else { context.Result = new JsonResult(ResponseOutput.NotOk(_localizer["Project_ExceptionContactDeveloper"] + (exception.InnerException is null ? (exception.Message) - : (exception.Message + "Inner ExceptionMsg:" + exception.InnerException?.Message)), ApiResponseCodeEnum.ProgramException)); + : (exception.Message + "Inner ExceptionMsg:" + exception.InnerException?.Message)), ApiResponseCodeEnum.BackEndAnomaly)); try { diff --git a/IRaCIS.Core.Application/BusinessFilter/MinimalAPI/GlobalExceptionHandler.cs b/IRaCIS.Core.Application/BusinessFilter/MinimalAPI/GlobalExceptionHandler.cs index 1cdec4619..dd3603e53 100644 --- a/IRaCIS.Core.Application/BusinessFilter/MinimalAPI/GlobalExceptionHandler.cs +++ b/IRaCIS.Core.Application/BusinessFilter/MinimalAPI/GlobalExceptionHandler.cs @@ -58,7 +58,7 @@ public class GlobalExceptionHandler(IStringLocalizer _localizer, ILogger + + + 测试异常 + + + + 获取报告图表数据 @@ -17614,17 +17621,17 @@ - 质疑 + ���� - 一致性核查 + һ���Ժ˲� - 复制 + ���� diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs index 92b8767fc..2a2ce792d 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs @@ -81,6 +81,20 @@ namespace IRaCIS.Core.Application.Service { private readonly SystemEmailSendConfig _systemEmailConfig = systemEmailConfig.CurrentValue; + + /// + /// 测试异常 + /// + /// + /// + public async Task Test(GetReportsChartSummaryInDto inDto) + { + var a = 0; + var v = 1 / a; + + return ResponseOutput.Ok(); + } + /// /// 获取报告图表数据 /// diff --git a/IRaCIS.Core.Infrastructure/_IRaCIS/Output/ApiResponseCodeEnum.cs b/IRaCIS.Core.Infrastructure/_IRaCIS/Output/ApiResponseCodeEnum.cs index 5bf6ef3cb..44b3e63ce 100644 --- a/IRaCIS.Core.Infrastructure/_IRaCIS/Output/ApiResponseCodeEnum.cs +++ b/IRaCIS.Core.Infrastructure/_IRaCIS/Output/ApiResponseCodeEnum.cs @@ -64,6 +64,11 @@ namespace IRaCIS.Core.Infrastructure.Extention /// NotRemind = -4, + /// + /// 后端异常 不提醒 + /// + BackEndAnomaly=-5, + }