setName('close-user-sprite') ->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) { while (true) { sleep(1); $tid = input('tid', 0); $is_reset = input('is_reset', 0); $reslut = model('api/Sprite')->close_user_sprite(); echo '监控仲夏夜梦曲结算用户投票!'.PHP_EOL; } } }