|
...
|
...
|
@@ -406,8 +406,8 @@ class ProductLogic extends BaseLogic |
|
|
|
}
|
|
|
|
if(!empty($featured_arr)){
|
|
|
|
$cateRelated = new CategoryRelated();
|
|
|
|
$product_ids = $cateRelated->whereIn('cate_id',$featured_arr)->pluck('product_id')->unique()->toArray();
|
|
|
|
$map['id'] = ['not in',$product_ids];
|
|
|
|
$product_ids = $cateRelated->whereNotIn('cate_id',$featured_arr)->pluck('product_id')->unique()->toArray();
|
|
|
|
$map['id'] = ['in',$product_ids];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($v == 3){
|
...
|
...
|
|