初始化代码
This commit is contained in:
32
application/common/command/CloseUserSignContract.php
Normal file
32
application/common/command/CloseUserSignContract.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\common\command;
|
||||
|
||||
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\Output;
|
||||
|
||||
class CloseUserSignContract extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('close-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('api/UserSignContract')->close_user_sign_contract();
|
||||
echo '定时查询签约是否结束进行解约!'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user