This commit is contained in:
hgc 2025-02-22 22:55:31 +08:00
parent 9d51e7fc70
commit 9cc595b4cb

View File

@ -60,7 +60,7 @@ class BpsAdAccountService
$query->where('bamr.account_id', $account_id);
}
// 选择需要的字段
$customers = $query->field('bamr.account_id, bamr.refresh_token, COALESCE(CAST(bamr.ext_info->>\'login_customer_id\' AS INT), 0) as login_customer_id')
$customers = $query->field('bamr.account_id, bamr.refresh_token, bamr.ext_info->>\'login_customer_id\' as login_customer_id')
->select(); // 执行查询
} else {
// 获取符合条件的客户ID数组