|
...
|
...
|
@@ -52,8 +52,8 @@ class Category extends Base |
|
|
|
*/
|
|
|
|
public static function getProductNum($cate_id){
|
|
|
|
$cate_ids = self::getChildIdsArr($cate_id);
|
|
|
|
$count = CategoryRelated::whereIn('category_id',$cate_ids)->count();
|
|
|
|
$str = $count;
|
|
|
|
// $count = CategoryRelated::whereIn('category_id',$cate_ids)->count();
|
|
|
|
$str = 0;
|
|
|
|
return $str;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|