含 AI 助手、抖音 OAuth、流量池推送、支付获客、SuperAdmin 设备与场景管理等本地迭代;以本地为准单向推送,未拉取远程。 Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
838 B
PHP
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;
|
|
}
|
|
}
|