Files
yuyin-php/application/common/command/CloseUserSignContract.php
2025-08-08 14:45:40 +08:00

32 lines
766 B
PHP

<?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;
}
}