mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
Response::sendHttpStatus方法废弃 改为http_response_code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user