From 349a3d69f52e774c84c766bc18222ae6c811724c Mon Sep 17 00:00:00 2001 From: hgc Date: Tue, 18 Mar 2025 20:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E6=8E=A5=E5=8F=A3=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=9A=E5=BA=97=E9=93=BA=20=E6=9B=B4=E6=96=B04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/AdsInsightService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service/AdsInsightService.php b/app/service/AdsInsightService.php index 39c2096..7500d0f 100644 --- a/app/service/AdsInsightService.php +++ b/app/service/AdsInsightService.php @@ -273,7 +273,7 @@ class AdsInsightService $campaigns = $query->limit(($page - 1) * $pageSize, $pageSize)->select(); - $accountIds = array_unique(array_column($campaigns, 'account_id')); + $accountIds = array_unique(array_column($campaigns->toArray(), 'account_id')); $accountNames = BpsAdsMerchantRelation::whereIn('account_id', $accountIds) ->column('account_name', 'account_id'); // 确保数据格式统一