src/Controller.php
protected function ok($msg = '', string $url = ''): void
    {
        if (isAjax()) {
            $this->ajaxOk($msg);
        } else {
            self::successBack($msg, $url);
        }
    }
protected function ok($msg = '', string $url = ''): void
    {
        if (isAjax()) {
            $this->ajaxOk($msg);
        } else {
            self::successBack($msg, $url);
        }
    }
完成成功信息的显示并跳转
@param $msg mixed 提示信息
@param string $url 要跳转的地址