合并分支 'lyh-server' 到 'master'
gx数据 查看合并请求 !1501
正在显示
1 个修改的文件
包含
11 行增加
和
11 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论