src/Controller.php
protected function ajaxOk($data = ''): void
    {
        $this->ajax(json(Debug::end([
            'status' => 'success',
            'success' => true,
            'error' => false,
            'data' => $data,
            'msg' => '操作成功',
            'errorCode' => 0,
        ])));
    }
protected function ajaxOk($data = ''): void
    {
        $this->ajax(json(Debug::end([
            'status' => 'success',
            'success' => true,
            'error' => false,
            'data' => $data,
            'msg' => '操作成功',
            'errorCode' => 0,
        ])));
    }
返回Json成功数据
@param mixed $data 要返回的具体数据