修改h5获取城市品牌
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user