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

28 lines
554 B
PHP

<?php
namespace app\common\command;
use app\api\logic\sv\PublishLogic;
use think\console\Command;
use think\console\Input;
use think\console\Output;
/**
* 知识库文件状态更新
*/
class PublishDetailCron extends Command
{
protected function configure()
{
$this->setName('publish_detail_cron')
->setDescription('拉取新生成的视频图文信息写入待发布表');
}
protected function execute(Input $input, Output $output)
{
PublishLogic::setPublishDetail();
return true;
}
}