简化slog类

This commit is contained in:
thinkphp
2015-12-08 12:49:26 +08:00
parent a679f878df
commit 64348512ef
5 changed files with 59 additions and 134 deletions

View File

@@ -107,10 +107,7 @@ class App
// 操作方法执行完成监听
Hook::listen('action_end', $data);
// 返回数据
Response::returnData($data, $config['default_return_type']);
if ($config['response_exit']) {
exit;
}
Response::returnData($data, $config['default_return_type'], $config['response_exit']);
} else {
// 操作方法不是Public 抛出异常
throw new \ReflectionException();