<?php declare (strict_types=1); namespace app\command; use think\console\Command; use think\console\Input; use think\console\Output; class Activity extends Command { protected function configure() { // 指令配置 $this->setName('coupon') ->setDescription('样例'); } protected function execute(Input $input, Output $output) { } }