改进response类

This commit is contained in:
thinkphp
2016-05-11 14:04:56 +08:00
parent fce80eb623
commit 7f385217b9
7 changed files with 94 additions and 119 deletions

View File

@@ -154,7 +154,7 @@ class Error
// 异常信息输出监听
APP_HOOK && Hook::listen('error_output', $data);
// 输出异常内容
Response::send($data, $type, Config::get('response_return'));
Response::instance()->send($data, $type, Config::get('response_return'));
} else {
//ob_end_clean();
extract($data);