作者 lyh

更新修改

@@ -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) - 1; 127 + $count = count($productArr);
128 return $count; 128 return $count;
129 } 129 }
130 130