三个广告平台更换账号表 fixed 2

This commit is contained in:
huangguancheng 2025-02-15 18:42:13 +08:00
parent e59e187af6
commit d85791a740

View File

@ -1243,8 +1243,8 @@ class AdsInsightService
// 获取所有符合条件的数据(不分页)
$allAccounts = $query->select()->toArray();
// 打印调试 SQL 查询
$sql = $query->getLastSql();
dump($sql);
// $sql = $query->getLastSql();
// dump($sql);
// 汇总统计数据
$total_spend = array_sum(array_column($allAccounts, 'spend'));
$total_cost = array_sum(array_column($allAccounts, 'total_cost'));