|
|
|
@ -114,13 +114,14 @@ class Category extends BaseModel |
|
|
|
|
$filter[] = ['parent_id', '=', $params['category_id']]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (isset($param['merchantId']) && $param['merchantId'] != "") { |
|
|
|
|
/* if (isset($param['merchantId']) && $param['merchantId'] != "") { |
|
|
|
|
$filter[] = ['merchant_id', '=', $params['merchantId']]; |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
if (isset($param['cataIds']) && $param['cataIds'] != "") { |
|
|
|
|
if (isset($param['cataIds']) && !empty($param['cataIds'])) { |
|
|
|
|
$filter[] = ['category_id', 'in', $param['cataIds']]; |
|
|
|
|
} |
|
|
|
|
//print_r($filter);die; |
|
|
|
|
|
|
|
|
|
// 查询列表数据 |
|
|
|
|
return $this->with(['image','rankimage']) |
|
|
|
|