From d7806321df7ea58f573574bf17d523e20f0ba007 Mon Sep 17 00:00:00 2001 From: huangguancheng Date: Sat, 11 Jan 2025 11:31:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=AE=A2=E6=88=B7ID=E5=8E=BB?= =?UTF-8?q?=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/BpsAdController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controller/BpsAdController.php b/app/controller/BpsAdController.php index 8b907cd..ec8428e 100644 --- a/app/controller/BpsAdController.php +++ b/app/controller/BpsAdController.php @@ -147,7 +147,7 @@ class BpsAdController } // 获取客户ID数组 - $accountIds = array_column($accounts, 'account_id'); + $accountIds = array_unique(array_column($accounts, 'account_id')); // 调用 Service 层查询广告列表 $result = $this->adsInsightService::getAdList( @@ -262,7 +262,7 @@ class BpsAdController } // 获取客户ID数组 - $accountIds = array_column($accounts, 'account_id'); + $accountIds = array_unique(array_column($accounts, 'account_id')); // dump($accountIds); // 调用 Service 层查询广告组列表 $result = $this->adsInsightService::getAdsetList( @@ -320,7 +320,7 @@ class BpsAdController } // 获取客户ID数组 - $accountIds = array_column($accounts, 'account_id'); + $accountIds = array_unique(array_column($accounts, 'account_id')); // dump($accountIds); // 调用 Service 层查询广告组列表 $result = $this->adsInsightService->getCreativeInsightData( @@ -375,7 +375,7 @@ class BpsAdController } // 获取客户ID数组 - $accountIds = array_column($accounts, 'account_id'); + $accountIds = array_unique(array_column($accounts, 'account_id')); // dump($accountIds); // 调用 Service 层查询广告组列表 $result = $this->adsInsightService->getAdCycleInsight(