setName('refreshArea') ->setDescription('更新地区命令'); } protected function execute(Input $input, Output $output) { (new refreshArea())->execute($output); // 指令输出 $output->writeln('地区更新成功'); } }