no message
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\command;
|
||||
|
||||
use app\common\service\article\ArticleAiCommentService;
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\Output;
|
||||
|
||||
class ArticleAiComment extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('article_ai_comment')
|
||||
->setDescription('资讯AI评论定时任务');
|
||||
}
|
||||
|
||||
protected function execute(Input $input, Output $output)
|
||||
{
|
||||
$summary = ArticleAiCommentService::tick();
|
||||
|
||||
$output->writeln(sprintf(
|
||||
'[ArticleAiComment] 虚拟账号 %d 个,新增任务 %d 个,已执行 %d 个',
|
||||
$summary['virtual_user_count'] ?? 0,
|
||||
$summary['seeded']['created'] ?? 0,
|
||||
$summary['processed']['done'] ?? 0
|
||||
));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user