edit-api-auto-series2

This commit is contained in:
lccsw
2021-08-18 10:53:04 +08:00
parent c9510decf6
commit 82c9b2ecbe
+4 -1
View File
@@ -42,7 +42,10 @@ class Series extends Wxapp{
$str_brands = implode(',',$auto_brands);
$where["id in ($str_brands)"] = null;
}
if($id){ //只显示相同品牌
$series = $this->auto_series_model->get(['id'=>$id],'brand_id');
$series['brand_id'] && $where['brand_id'] = $series['brand_id'];
}
$rows = $this->auto_series_model-> select($where,'',1,20,'id,brand_id,name');
$list = [];
if($rows){