作者 lyh

设置数量

@@ -406,7 +406,8 @@ class ProductLogic extends BaseLogic @@ -406,7 +406,8 @@ 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('product_id')->unique()->toArray(); 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();
410 $map['id'] = ['in',$product_ids]; 411 $map['id'] = ['in',$product_ids];
411 } 412 }
412 } 413 }