mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正route类的parseURL解析
This commit is contained in:
@@ -125,10 +125,16 @@ class Error
|
||||
}
|
||||
}
|
||||
}
|
||||
// 异常信息输出监听
|
||||
Hook::listen('error_output', $e);
|
||||
// 输出异常内容
|
||||
Response::returnData($e, Config::get('default_return_type'));
|
||||
|
||||
$type = Config::get('default_return_type');
|
||||
if ('html' == $type) {
|
||||
include Config::get('exception_tmpl');
|
||||
} else {
|
||||
// 异常信息输出监听
|
||||
Hook::listen('error_output', $e);
|
||||
// 输出异常内容
|
||||
Response::returnData($e, $type);
|
||||
}
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user