修改h5获取城市品牌

This commit is contained in:
lcc
2025-10-14 23:34:25 +08:00
parent 4dbe71093f
commit ad81194598
+1 -1
View File
@@ -59,7 +59,7 @@ class Brand extends BaseController
$cityId = intval($params['cityId']);
$where = ['status' => Auto_product_model::STATUS_NORMAL];
$where["(cityId is null or cityId={$cityId})"] = null;
$res = $this->autoProduct->selectProduct($where, 'lc_auto_product.id desc', 1, 5, 'lc_auto_product.brandId');
$res = $this->autoProduct->selectProduct($where, 'lc_auto_product.id desc', 0, 0, 'lc_auto_product.brandId');
$brandIdArray = array_unique(array_column($res, 'brandId'));
$list = [];
if ($brandIdArray) {