edit-api-auto_biz

This commit is contained in:
lccsw
2023-01-30 15:40:49 +08:00
parent c456859054
commit f1e5b12c91
7 changed files with 77 additions and 36 deletions
+2 -5
View File
@@ -153,11 +153,8 @@ class Home extends Wxapp
!$type && $type = 1;
$brand_ids = array();
if ($this->biz_id) {//查找门店授权品牌
$re_b = $this->mdBiz->get(array('id' => $this->biz_id, 'status' => 1));
if ($re_b['jsondata']) {
$jsondata = json_decode($re_b['jsondata'], true);
$jsondata['auto_brands'] && $brand_ids = $jsondata['auto_brands'];
}
$b_biz_rows = $this->auto_brand_biz_model->select(['biz_id'=>$this->biz_id],'','','','brand_id');
$brand_ids = array_column($b_biz_rows,'brand_id');
}
$lists = array();
$total = 0;