作者 lyh

设置数量

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