作者 lyh

gx

@@ -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);