作者 lyh

设置数量

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