Files
mier-php/application/common/command/CloseRoomStatus.php
2025-08-11 10:22:05 +08:00

32 lines
709 B
PHP

<?php
namespace app\common\command;
use think\console\Command;
use think\console\Input;
use think\console\Output;
class CloseRoomStatus extends Command
{
protected function configure()
{
$this->setName('close-room-status')
->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)
{
model('api/RoomMicro')->close_room_status();
echo '定时关闭没有主持房间!'.PHP_EOL;
}
}