modules = ['application/service/']; $this->setName('xsync:service')->setDescription('[同步]覆盖本地Service模块代码'); } /** * 执行更新操作 * @param Input $input * @param Output $output */ protected function execute(Input $input, Output $output) { $root = str_replace('\\', '/', env('root_path')); if (file_exists("{$root}/application/service/sync.lock")) { $this->output->error("--- Service 模块已经被锁定,不能继续更新"); } else { parent::execute($input, $output); } } }