正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -124,7 +124,7 @@ class Category extends Base | @@ -124,7 +124,7 @@ class Category extends Base | ||
| 124 | $str[] = $cate_id; | 124 | $str[] = $cate_id; |
| 125 | $cate_ids = $this->getAllSub($list,$cate_id,$str); | 125 | $cate_ids = $this->getAllSub($list,$cate_id,$str); |
| 126 | $productArr = CategoryRelated::whereIn('cate_id',$cate_ids)->pluck('product_id')->unique()->toArray(); | 126 | $productArr = CategoryRelated::whereIn('cate_id',$cate_ids)->pluck('product_id')->unique()->toArray(); |
| 127 | - $count = count($productArr); | 127 | + $count = count($productArr) - 1; |
| 128 | return $count; | 128 | return $count; |
| 129 | } | 129 | } |
| 130 | 130 |
-
请 注册 或 登录 后发表评论