32 lines
681 B
PHP
32 lines
681 B
PHP
<?php
|
|
|
|
|
|
namespace app\common\command;
|
|
|
|
|
|
use think\console\Command;
|
|
use think\console\Input;
|
|
use think\console\Output;
|
|
|
|
class SignExec extends Command
|
|
{
|
|
protected function configure()
|
|
{
|
|
$this->setName('sign-exec')
|
|
->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)
|
|
{
|
|
model("api/UserSign")->del_user_day_sign_log();
|
|
echo '签名删除处理成功!'.PHP_EOL;
|
|
}
|
|
} |