改进App类

This commit is contained in:
thinkphp
2016-05-11 10:03:50 +08:00
parent 8e1cd9c51f
commit 861328c797

View File

@@ -103,7 +103,7 @@ class App
throw new Exception('dispatch type not support', 10008);
}
// 输出数据到客户端
if (isset($data) && !is_null($data)) {
if (isset($data)) {
// 监听app_end
APP_HOOK && Hook::listen('app_end', $data);
// 自动响应输出