作者 lyh

更新产品

@@ -406,8 +406,8 @@ class ProductLogic extends BaseLogic @@ -406,8 +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();  
410 - $map['id'] = ['in',$product_ids]; 409 + $product_ids = $cateRelated->whereIn('cate_id',$featured_arr)->pluck('product_id')->unique()->toArray();
  410 + $map['id'] = ['not in',$product_ids];
411 } 411 }
412 } 412 }
413 if($v == 3){ 413 if($v == 3){