diff --git a/helper.php b/helper.php index 21249f30..75da2e9b 100644 --- a/helper.php +++ b/helper.php @@ -497,7 +497,7 @@ if (!function_exists('redirect')) { $params = []; } $response = Response::create($url, 'redirect', $code)->params($params); - throw new HttpResponseException($response); + throw new \think\exception\HttpResponseException($response); } }