初始化代码
This commit is contained in:
33
application/common/command/ClearUserVip.php
Normal file
33
application/common/command/ClearUserVip.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\common\command;
|
||||
|
||||
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\Output;
|
||||
|
||||
class ClearUserVip extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('clear-user-vip')
|
||||
->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)
|
||||
{
|
||||
$reslut = model('api/Vip')->close_user_vip();
|
||||
echo '到期会员清除!'.PHP_EOL;;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user