mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -46,6 +46,9 @@ class Handler extends ExceptionHandler | |||||||
|      */ |      */ | ||||||
|     public function render($request, Exception $exception) |     public function render($request, Exception $exception) | ||||||
|     { |     { | ||||||
|  |         if($exception instanceof ThrottleRequestsException) { | ||||||
|  |             abort(500, '请求频繁,请稍后再试'); | ||||||
|  |         } | ||||||
|         return parent::render($request, $exception); |         return parent::render($request, $exception); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user