From d9dcea4e4f6cc9eaaa345ee535abd9c0850fdfa5 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Tue, 3 Mar 2020 01:26:14 +0800 Subject: [PATCH] update --- app/Exceptions/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 9041a3f6..2c973d14 100755 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -46,8 +46,8 @@ class Handler extends ExceptionHandler */ public function render($request, Exception $exception) { - if($exception instanceof ThrottleRequestsException) { - abort(500, '请求频繁,请稍后再试'); + if($exception instanceof \Illuminate\Http\Exceptions\ThrottleRequestsException) { + abort(429, '请求频繁,请稍后再试'); } return parent::render($request, $exception); }