no message

This commit is contained in:
hajimi
2026-06-11 12:15:29 +08:00
parent 10ebe39c30
commit 96efa1d905
5859 changed files with 815501 additions and 5 deletions
@@ -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;
}
}