Files
yuyin-php/application/common/command/CloseUserSprite.php

37 lines
875 B
PHP
Raw Normal View History

2025-08-08 14:45:40 +08:00
<?php
namespace app\common\command;
use think\console\Command;
use think\console\Input;
use think\console\Output;
class CloseUserSprite extends Command
{
protected function configure()
{
$this->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;
}
}
}