修正redirect助手函数

This commit is contained in:
thinkphp
2016-09-05 18:00:10 +08:00
parent 0d12b8b394
commit ce8682181c

View File

@@ -497,7 +497,7 @@ if (!function_exists('redirect')) {
$params = []; $params = [];
} }
$response = Response::create($url, 'redirect', $code)->params($params); $response = Response::create($url, 'redirect', $code)->params($params);
throw new HttpResponseException($response); throw new \think\exception\HttpResponseException($response);
} }
} }