xiaoai/php_server/app/common/command/FileStatusCron.php

28 lines
519 B
PHP

<?php
namespace app\common\command;
use app\api\logic\KnowledgeLogic;
use think\console\Command;
use think\console\Input;
use think\console\Output;
/**
* 知识库文件状态更新
*/
class FileStatusCron extends Command
{
protected function configure()
{
$this->setName('file_status_cron')
->setDescription('知识库文件状态更新');
}
protected function execute(Input $input, Output $output)
{
KnowledgeLogic::setFileStatus();
return true;
}
}