Response类增加getCode方法和getContent方法 send方法data参数去掉 App类的run方法返回response对象

This commit is contained in:
thinkphp
2016-06-13 16:45:39 +08:00
parent a9cfe2a801
commit 4689c86e0a
4 changed files with 49 additions and 15 deletions

View File

@@ -64,5 +64,8 @@ if (isset($mode['tags'])) {
// 是否自动运行
if (APP_AUTO_RUN) {
App::run();
$response = App::run();
if($response instanceof Response){
$response->send();
}
}