Files
cunkebao_v3/Server/application/command/DouyinCommentPollCommand.php
Manus AI 03ae8c07b6 feat: 同步本地全量开发到 GitHub(前端/后端/超管/开发文档规则)
含 AI 助手、抖音 OAuth、流量池推送、支付获客、SuperAdmin 设备与场景管理等本地迭代;以本地为准单向推送,未拉取远程。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 22:12:40 +08:00

31 lines
838 B
PHP

<?php
namespace app\command;
use app\cunkebao\service\DouyinCommentAcquisitionService;
use think\console\Command;
use think\console\Input;
use think\console\Output;
/**
* 抖音评论获客定时拉取
* php think douyin:comment-poll
*/
class DouyinCommentPollCommand extends Command
{
protected function configure()
{
$this->setName('douyin:comment-poll')
->setDescription('Poll Douyin video comments for active sceneId=3 plans');
}
protected function execute(Input $input, Output $output)
{
$summary = DouyinCommentAcquisitionService::pollAllActivePlans();
$output->writeln('<info>Douyin comment poll: plans=' . $summary['plans']
. ' newLeads=' . $summary['newLeads']
. ' errors=' . count($summary['errors']) . '</info>');
return 0;
}
}