http函数改完abort

This commit is contained in:
thinkphp
2016-05-29 23:15:26 +08:00
parent c81bd184f5
commit 67a91a776d

View File

@@ -426,7 +426,7 @@ function redirect($url = [], $params = [], $code = 302)
* @param string $message 错误信息
* @param array $header 参数
*/
function http($code, $message = null, $header = [])
function abort($code, $message = null, $header = [])
{
throw new \think\exception\HttpException($code, $message, null, $header);
}