From 3ce02f8b289a90b5fb4407f042cae6209a3e0d61 Mon Sep 17 00:00:00 2001 From: tone Date: Fri, 19 Dec 2025 20:11:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=A8=E5=B1=80filter=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AF=B7=E6=B1=82=E8=BF=87=E4=BA=8E=E9=A2=91=E7=B9=81?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/backend/src/common/filters/global.exceptions.filter.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/backend/src/common/filters/global.exceptions.filter.ts b/apps/backend/src/common/filters/global.exceptions.filter.ts index a7e365c..1cec9cb 100644 --- a/apps/backend/src/common/filters/global.exceptions.filter.ts +++ b/apps/backend/src/common/filters/global.exceptions.filter.ts @@ -43,6 +43,10 @@ export class GlobalExceptionsFilter implements ExceptionFilter { path: '/', }); } + + if (statusCode === HttpStatus.TOO_MANY_REQUESTS) { + errorResponse.message = '请求过于频繁,请稍后再试'; + } } else { Logger.warn(exception, request.path); }