upgrade($addon)); } /** * 执行升级 * @param $app_key * @return Response */ public function execute($addon = ''){ return success(data:(new UpgradeService())->execute()); } /** * 获取升级内容 * @param $addon * @return Response */ public function getUpgradeContent($addon = '') { return success(data:(new UpgradeService())->getUpgradeContent($addon)); } /** * 获取正在进行的升级任务 * @return Response */ public function getUpgradeTask() { return success(data:(new UpgradeService())->getUpgradeTask()); } /** * 升级前环境检测 * @param $addon * @return Response */ public function upgradePreCheck($addon = '') { return success(data:(new UpgradeService())->upgradePreCheck($addon)); } /** * 清除 * @return Response */ public function clearUpgradeTask() { return success(data:(new UpgradeService())->clearUpgradeTask()); } }