33 lines
760 B
PHP
33 lines
760 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
namespace app\common\command;
|
||
|
|
|
||
|
|
|
||
|
|
use think\console\Command;
|
||
|
|
use think\console\Input;
|
||
|
|
use think\console\Output;
|
||
|
|
|
||
|
|
class RelieveUserSignContract extends Command
|
||
|
|
{
|
||
|
|
protected function configure()
|
||
|
|
{
|
||
|
|
$this->setName('relieve-user-sign-contract')
|
||
|
|
->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('admin/Decorate')->clear_user_cp();
|
||
|
|
echo '解约用户每天降低身价!';
|
||
|
|
}
|
||
|
|
}
|