From 67a91a776d0969a465d0d7aeac44b0997edc40d7 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 29 May 2016 23:15:26 +0800 Subject: [PATCH] =?UTF-8?q?http=E5=87=BD=E6=95=B0=E6=94=B9=E5=AE=8Cabort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.php b/helper.php index 7f2084b0..ce25b9e6 100644 --- a/helper.php +++ b/helper.php @@ -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); }