Response::sendHttpStatus方法废弃 改为http_response_code

This commit is contained in:
thinkphp
2016-01-26 09:30:07 +08:00
parent 67c8eb3580
commit 2c5ec2ae87
4 changed files with 2 additions and 72 deletions

View File

@@ -28,7 +28,7 @@ class Error
'code' => $e->getCode(),
];
// 发送http状态信息
Response::sendHttpStatus(Config::get('exception_http_status'));
http_response_code(Config::get('exception_http_status'));
// 输出异常页面
self::halt($error);
}