mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
基于\think\Exception 才使用 getHttpStatus 方法
This commit is contained in:
@@ -141,7 +141,7 @@ class Error
|
||||
*/
|
||||
public static function output($exception, array $vars)
|
||||
{
|
||||
http_response_code($exception instanceof \Exception ? $exception->getHttpStatus() : 500);
|
||||
http_response_code($exception instanceof \think\Exception ? $exception->getHttpStatus() : 500);
|
||||
|
||||
$type = Config::get('default_return_type');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user