From 311ac85419c19a3c02f0e99fe090cce3d6ffc83a Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Tue, 14 Jul 2026 16:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E8=AF=B7=E6=B1=82code?= =?UTF-8?q?=E6=94=B9=E4=B8=BA-4=20=20=E5=8F=96=E6=B6=88Get=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/Properties/launchSettings.json | 9 +++++++++ .../LegacyController/RequestDuplicationFilter.cs | 7 +++++-- IRaCIS.Core.Application/IRaCIS.Core.Application.xml | 6 +++--- .../_IRaCIS/Output/ApiResponseCodeEnum.cs | 8 +++++++- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/IRaCIS.Core.API/Properties/launchSettings.json b/IRaCIS.Core.API/Properties/launchSettings.json index 3238a6f17..3b79cdfad 100644 --- a/IRaCIS.Core.API/Properties/launchSettings.json +++ b/IRaCIS.Core.API/Properties/launchSettings.json @@ -25,6 +25,15 @@ }, "applicationUrl": "http://0.0.0.0:6100" }, + "IRaCIS.Test_Rayplus": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Test_Rayplus", + "ASPNETCORE_OpenSwagger": "true" + }, + "applicationUrl": "http://0.0.0.0:6100" + }, "IRaCIS.Test_IRC_PGSQL": { "commandName": "Project", "launchBrowser": true, diff --git a/IRaCIS.Core.Application/BusinessFilter/LegacyController/RequestDuplicationFilter.cs b/IRaCIS.Core.Application/BusinessFilter/LegacyController/RequestDuplicationFilter.cs index d462948dd..096f509fd 100644 --- a/IRaCIS.Core.Application/BusinessFilter/LegacyController/RequestDuplicationFilter.cs +++ b/IRaCIS.Core.Application/BusinessFilter/LegacyController/RequestDuplicationFilter.cs @@ -8,6 +8,7 @@ namespace IRaCIS.Core.Application.BusinessFilter.LegacyController { using Database.Api; using DocumentFormat.OpenXml.InkML; + using global::MassTransit; using IRaCIS.Core.Application.Helper.OtherTool; using IRaCIS.Core.Application.Service.Common; using IRaCIS.Core.Infrastructure; @@ -95,9 +96,11 @@ namespace IRaCIS.Core.Application.BusinessFilter.LegacyController { var requestPath = accessor?.HttpContext?.Request?.Path.ToString() ?? string.Empty; + var httpMethod = accessor?.HttpContext?.Request?.Method?.ToUpper() ?? string.Empty; + // 验证请求频繁情况 if ( - //requestPath == "/ReadingImageTask/changeDicomReadingQuestionAnswer"&& + !httpMethod.Equals("GET", StringComparison.OrdinalIgnoreCase) && !requestPath .Split("/", StringSplitOptions.RemoveEmptyEntries) @@ -122,7 +125,7 @@ namespace IRaCIS.Core.Application.BusinessFilter.LegacyController { SendRequestDuplicationWeComNotice(requestPath); logger.LogError($"重复请求出现错误:{this.Intoparam}"); - throw new BusinessValidationFailedException(_localizer["RequestDuplicationFilter_RequestDuplication"], ApiResponseCodeEnum.BusinessValidationFailed); + throw new BusinessValidationFailedException(_localizer["RequestDuplicationFilter_RequestDuplication"], ApiResponseCodeEnum.NotRemind); } } } diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index c7b848054..a9fe100c1 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -17543,17 +17543,17 @@ - 质疑 + ���� - 一致性核查 + һ���Ժ˲� - 复制 + ���� diff --git a/IRaCIS.Core.Infrastructure/_IRaCIS/Output/ApiResponseCodeEnum.cs b/IRaCIS.Core.Infrastructure/_IRaCIS/Output/ApiResponseCodeEnum.cs index a2d88b1c8..5bf6ef3cb 100644 --- a/IRaCIS.Core.Infrastructure/_IRaCIS/Output/ApiResponseCodeEnum.cs +++ b/IRaCIS.Core.Infrastructure/_IRaCIS/Output/ApiResponseCodeEnum.cs @@ -50,13 +50,19 @@ namespace IRaCIS.Core.Infrastructure.Extention /// NeedChangePassWord=-3, + //没有带token访问(未登陆) NoToken = 10, //带了Token,但是没有相应权限(该用户类型不能做) HaveTokenNotAccess = 11, - ResultEncrepted=12 + ResultEncrepted=12, + + /// + /// 不需要提醒 + /// + NotRemind = -4, }