作者 lyh

gx数据

@@ -85,17 +85,17 @@ class CategoryController extends BaseController @@ -85,17 +85,17 @@ class CategoryController extends BaseController
85 } 85 }
86 }else{ 86 }else{
87 $list = $category->list($this->map,['sort','id'],$filed); 87 $list = $category->list($this->map,['sort','id'],$filed);
88 - $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_LIST);//获取模版id  
89 - foreach ($list as $k =>$v){  
90 - $v['url'] = $this->user['domain'] . $v['route'].'/';  
91 - $v['product_num'] = $category->getProductNum($list,$v['id']);  
92 - $v['image_link'] = getImageUrl($v['image'],$this->user['storage_type'],$this->user['project_location']);  
93 - $v['is_renovation'] = $this->getIsRenovation(BTemplate::SOURCE_PRODUCT,BTemplate::IS_LIST,$template_id,$v['id']);  
94 - $list[$k] = $v;  
95 - }  
96 - if(!isset($this->map['title'])){  
97 - $list = $this->getListSon($list);  
98 - } 88 +// $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_LIST);//获取模版id
  89 +// foreach ($list as $k =>$v){
  90 +// $v['url'] = $this->user['domain'] . $v['route'].'/';
  91 +// $v['product_num'] = $category->getProductNum($list,$v['id']);
  92 +// $v['image_link'] = getImageUrl($v['image'],$this->user['storage_type'],$this->user['project_location']);
  93 +// $v['is_renovation'] = $this->getIsRenovation(BTemplate::SOURCE_PRODUCT,BTemplate::IS_LIST,$template_id,$v['id']);
  94 +// $list[$k] = $v;
  95 +// }
  96 +// if(!isset($this->map['title'])){
  97 +// $list = $this->getListSon($list);
  98 +// }
99 Cache::put('category_list_'.$this->user['project_id'],$list,3600); 99 Cache::put('category_list_'.$this->user['project_id'],$list,3600);
100 } 100 }
101 return $this->success($list); 101 return $this->success($list);