初始化代码
This commit is contained in:
37
application/common/command/ControlBoxLuck.php
Normal file
37
application/common/command/ControlBoxLuck.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\common\command;
|
||||
|
||||
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\Output;
|
||||
|
||||
class ControlBoxLuck extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('control-box-luck')
|
||||
->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);
|
||||
$tid = input('tid', 0);
|
||||
$is_reset = input('is_reset', 0);
|
||||
$reslut = model('admin/Multiple')->control_gift_multiple($tid, $is_reset);
|
||||
echo '奖池监控成功!';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user