29 lines
769 B
PHP
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;
|
|
}
|
|
}
|