diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 324a050a..9041a3f6 100755 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -46,6 +46,9 @@ class Handler extends ExceptionHandler */ public function render($request, Exception $exception) { + if($exception instanceof ThrottleRequestsException) { + abort(500, '请求频繁,请稍后再试'); + } return parent::render($request, $exception); }