正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -37,10 +37,9 @@ class CategoryController extends BaseController | @@ -37,10 +37,9 @@ class CategoryController extends BaseController | ||
| 37 | $data = []; | 37 | $data = []; |
| 38 | if(!empty($list)){ | 38 | if(!empty($list)){ |
| 39 | foreach ($list as $k =>$v){ | 39 | foreach ($list as $k =>$v){ |
| 40 | - $v['url'] = $this->user['domain'] . $v['url']; | 40 | + $v['url'] = $this->user['domain'] . $v['route']; |
| 41 | $v['product_num'] = Product::where('category_id','like' ,'%,'.$v['id'].',%')->count();; | 41 | $v['product_num'] = Product::where('category_id','like' ,'%,'.$v['id'].',%')->count();; |
| 42 | $v['image_link'] = getImageUrl($v['image']); | 42 | $v['image_link'] = getImageUrl($v['image']); |
| 43 | - $v = $this->handleParam($v); | ||
| 44 | $list[$k] = $v; | 43 | $list[$k] = $v; |
| 45 | } | 44 | } |
| 46 | $data = $this->getListSon($list); | 45 | $data = $this->getListSon($list); |
-
请 注册 或 登录 后发表评论