|
|
@@ -19,10 +19,10 @@ class CostToutiao extends Command
|
|
|
*/
|
|
|
protected function configure()
|
|
|
{
|
|
|
- // 用法示例 php webman cost:tt date pmid advertiser_ids
|
|
|
+ // 用法示例 php webman cost:tt date bmid advertiser_ids
|
|
|
// php webman cost:tt 2025-07-30,2025-07-31 0 54970254,60853999
|
|
|
$this->addArgument('date', InputArgument::OPTIONAL, '日期范围');
|
|
|
- $this->addArgument('pmid', InputArgument::OPTIONAL, '需要拉取的API配置ID');
|
|
|
+ $this->addArgument('bmid', InputArgument::OPTIONAL, '需要拉取的API配置ID');
|
|
|
$this->addArgument('advertiser_ids', InputArgument::OPTIONAL, '需要拉取的广告账户');
|
|
|
}
|
|
|
|
|
|
@@ -34,7 +34,7 @@ class CostToutiao extends Command
|
|
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
|
|
{
|
|
|
$date = $input->getArgument('date');
|
|
|
- $pmid = (int)$input->getArgument('pmid');
|
|
|
+ $pmid = (int)$input->getArgument('bmid');
|
|
|
$advertiserIds = $input->getArgument('advertiser_ids');
|
|
|
|
|
|
$params = [];
|
|
|
@@ -44,7 +44,7 @@ class CostToutiao extends Command
|
|
|
}
|
|
|
|
|
|
if($pmid){
|
|
|
- $params['pmid'] = $pmid;
|
|
|
+ $params['bmid'] = $pmid;
|
|
|
}
|
|
|
|
|
|
if($advertiserIds){
|