修正route类的parseURL解析

This commit is contained in:
thinkphp
2015-12-08 16:59:06 +08:00
parent 003b99cdd6
commit 08d118a154
3 changed files with 33 additions and 14 deletions

View File

@@ -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;
}
}