Files
cunkebao_v3/Server/application/command/AcquisitionOpsReportCommand.php
Manus AI 2e856b1922 feat: 场景获客总设置新增运营报告定时推送(默认09:00)
按公司汇总各平台客资数据,支持 Webhook/飞书定时与立即发送,含预览面板。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 05:02:33 +08:00

29 lines
769 B
PHP

<?php
namespace app\command;
use app\cunkebao\service\AcquisitionOpsReportService;
use think\console\Command;
use think\console\Input;
use think\console\Output;
/**
* 场景获客运营报告定时推送(每分钟扫描,到点发送)
* php think acquisition:ops-report
*/
class AcquisitionOpsReportCommand extends Command
{
protected function configure()
{
$this->setName('acquisition:ops-report')
->setDescription('Dispatch scheduled acquisition ops reports per company');
}
protected function execute(Input $input, Output $output)
{
$sent = AcquisitionOpsReportService::runScheduledDispatch();
$output->writeln('<info>Acquisition ops reports sent: ' . $sent . '</info>');
return 0;
}
}