35 lines
763 B
PHP
35 lines
763 B
PHP
<?php
|
|
|
|
|
|
namespace app\common\command;
|
|
|
|
|
|
use think\console\Command;
|
|
use think\console\Input;
|
|
use think\console\Output;
|
|
|
|
class CloseDateMicro extends Command
|
|
{
|
|
protected function configure()
|
|
{
|
|
$this->setName('close-date-micro')
|
|
->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(2);
|
|
$reslut = model('api/PubRoom')->close_room_date_micro();
|
|
echo '酒吧房掉麦监控!'.PHP_EOL;
|
|
}
|
|
}
|
|
} |