src/Controller.php
protected function headerTo(string $controller = null, string $action = null, array $params = []): void
    {
        $this->redirectTemporary(url($this->module, $controller, $action, $params));
    }
protected function headerTo(string $controller = null, string $action = null, array $params = []): void
    {
        $this->redirectTemporary(url($this->module, $controller, $action, $params));
    }
使用header重定向,让浏览器向新的地址发送请求
@param string $controller
@param string $action
@param array $params