success('成功', UserDeleteLogic::checkCanDelete($this->userId)); } /** * @notes 确定注销 * @return \think\response\Json * @author lbzy * @datetime 2023-08-21 16:46:32 */ function delete() { $result = UserDeleteLogic::sureDelete($this->userId); if ($result !== true) { return $this->fail((string) $result); } return $this->success('成功'); } }