正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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){ |
-
请 注册 或 登录 后发表评论