作者 lyh

gx

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