改进Validate类

This commit is contained in:
thinkphp
2016-03-06 21:01:31 +08:00
parent 763a3f0c41
commit d5870ddb59
2 changed files with 3 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ class Error
*/
public static function output($exception, array $vars)
{
http_response_code($exception instanceof \think\Exception ? $exception->getHttpStatus() : 500);
http_response_code($exception instanceof Exception ? $exception->getHttpStatus() : 500);
$type = Config::get('default_return_type');