作者 lyh

gx

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