可视化页面品牌和分类链接错误修复

feat/task1-c-wallet
gongfuxiang 2022-07-10 13:05:27 +08:00
parent b0720643bc
commit 0279490915
1 changed files with 3 additions and 3 deletions

View File

@ -614,13 +614,13 @@ class BaseLayout
// 分类
case 'category' :
$category_id = $value['value'][count($value['value'])-1]['id'];
$gsp = ($client_type == 'pc') ? ['category_id'=>$category_id] : '?category_id='.$category_id;
$cid = $value['value'][count($value['value'])-1]['id'];
$gsp = ($client_type == 'pc') ? ['cid'=>$cid] : '?category_id='.$cid;
break;
// 品牌
case 'brand' :
$gsp = ($client_type == 'pc') ? ['brand_id'=>$value['value']['id']] : '?brand_id='.$value['value']['id'];
$gsp = ($client_type == 'pc') ? ['brand'=>$value['value']['id']] : '?brand='.$value['value']['id'];
break;
}
}