作者 lyh

gx

... ... @@ -37,10 +37,9 @@ class CategoryController extends BaseController
$data = [];
if(!empty($list)){
foreach ($list as $k =>$v){
$v['url'] = $this->user['domain'] . $v['url'];
$v['url'] = $this->user['domain'] . $v['route'];
$v['product_num'] = Product::where('category_id','like' ,'%,'.$v['id'].',%')->count();;
$v['image_link'] = getImageUrl($v['image']);
$v = $this->handleParam($v);
$list[$k] = $v;
}
$data = $this->getListSon($list);
... ...