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'); // 确保数据格式统一