setName('clear-user-vip') ->setDescription('到期会员清除'); } /** * 下单一段时间 没有人接单 自动关闭订单 * @param Input $input * @param Output $output * @return int|void|null * @throws \think\Exception * @throws \think\exception\PDOException */ protected function execute(Input $input, Output $output) { $reslut = model('api/Vip')->close_user_vip(); echo '到期会员清除!'.PHP_EOL;; } }