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); }