modules = ['application/service/']; $this->setName('xsync:service')->setDescription('从远程覆盖本地Service模块的所有代码'); } 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 module has been locked'); } else { parent::execute($input, $output); } } }