作者 lyh

gx

@@ -27,19 +27,19 @@ class CategoryLogic extends BaseLogic @@ -27,19 +27,19 @@ class CategoryLogic extends BaseLogic
27 $this->model = new Category(); 27 $this->model = new Category();
28 } 28 }
29 29
30 - public function getList(array $map = [], array $sort = ['id' => 'desc'], array $columns = ['*'], int $limit = 20)  
31 - {  
32 - $data = parent::getList($map, $sort, $columns, $limit);  
33 - foreach ($data as &$v){  
34 - $v['url'] = $this->getProjectDomain() . $v['route'] ;  
35 - $v['product_num'] = $this->getProductNum($v['id']);  
36 - $v['image_link'] = getImageUrl($v['image']);  
37 - }  
38 - if(!$map){  
39 - $data = Arr::listToTree($data);  
40 - }  
41 - return $this->success($data);  
42 - } 30 +// public function getList(array $map = [], array $sort = ['id' => 'desc'], array $columns = ['*'], int $limit = 20)
  31 +// {
  32 +// $data = parent::getList($map, $sort, $columns, $limit);
  33 +// foreach ($data as &$v){
  34 +// $v['url'] = $this->getProjectDomain() . $v['route'] ;
  35 +// $v['product_num'] = $this->getProductNum($v['id']);
  36 +// $v['image_link'] = getImageUrl($v['image']);
  37 +// }
  38 +// if(!$map){
  39 +// $data = Arr::listToTree($data);
  40 +// }
  41 +// return $this->success($data);
  42 +// }
43 43
44 public function getInfo($id) 44 public function getInfo($id)
45 { 45 {