core/Controller.php
protected function redirect(string $url, array $query = [])
    {
        $url = empty($url) ? '/' : $url;
        $url = Route::url($url, $query);
        Request::setHeader('Location', $url);
        exit;
    }
protected function redirect(string $url, array $query = [])
    {
        $url = empty($url) ? '/' : $url;
        $url = Route::url($url, $query);
        Request::setHeader('Location', $url);
        exit;
    }
设置跳转
@param string $url
@param array $query