mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
update
This commit is contained in:
parent
fad12a62ce
commit
d9dcea4e4f
@ -46,8 +46,8 @@ class Handler extends ExceptionHandler
|
|||||||
*/
|
*/
|
||||||
public function render($request, Exception $exception)
|
public function render($request, Exception $exception)
|
||||||
{
|
{
|
||||||
if($exception instanceof ThrottleRequestsException) {
|
if($exception instanceof \Illuminate\Http\Exceptions\ThrottleRequestsException) {
|
||||||
abort(500, '请求频繁,请稍后再试');
|
abort(429, '请求频繁,请稍后再试');
|
||||||
}
|
}
|
||||||
return parent::render($request, $exception);
|
return parent::render($request, $exception);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user