|
...
|
...
|
@@ -34,7 +34,7 @@ class ProductController extends BaseController |
|
|
|
$ids = CategoryRelated::where('cate_id', $this->param['category_id'])->pluck('product_id')->toArray();
|
|
|
|
$map[] = ['id', 'in', $ids];
|
|
|
|
}
|
|
|
|
if(!empty($this->param['status'])){
|
|
|
|
if(isset($this->param['status'])){
|
|
|
|
$map[] = ['status', $this->param['status']];
|
|
|
|
}
|
|
|
|
$sort = ['id' => 'desc'];
|
...
|
...
|
|