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