正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -55,7 +55,7 @@ class CategoryController extends BaseController | @@ -55,7 +55,7 @@ class CategoryController extends BaseController | ||
| 55 | * @time :2023/8/17 11:10 | 55 | * @time :2023/8/17 11:10 |
| 56 | */ | 56 | */ |
| 57 | public function handleParam(&$category,$v){ | 57 | public function handleParam(&$category,$v){ |
| 58 | - $v['url'] = $this->user['domain'] . $v['route']; | 58 | + $v['url'] = $this->user['domain'] . RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_CATE, $v['id'], $v['project_id']); |
| 59 | $cate_ids = $category->getChildIdsArr($v['id']); | 59 | $cate_ids = $category->getChildIdsArr($v['id']); |
| 60 | $v['product_num'] = CategoryRelated::whereIn('cate_id', $cate_ids)->distinct()->count('product_id'); | 60 | $v['product_num'] = CategoryRelated::whereIn('cate_id', $cate_ids)->distinct()->count('product_id'); |
| 61 | $v['image_link'] = getImageUrl($v['image']); | 61 | $v['image_link'] = getImageUrl($v['image']); |
-
请 注册 或 登录 后发表评论