Authored by xiaowei

YW-1680 在线客服标题问题

... ... @@ -466,8 +466,10 @@ class HomeController extends AbstractAction
*/
public function onlineServiceDetailAction()
{
$cateId = $this->get('cateId', 0);
$cateName = $this->get('cateName', '');
$cateInfo = $this->get('cateInfo', '');
$cate = explode("_", $cateInfo);
$cateId = intval($cate[0]);
$cateName = $cate[1];
if ($cateId > 0) {
$service = Home\OnlineModel::getOnlineServiceDetail($cateId);
}
... ...
... ... @@ -39,7 +39,7 @@ class OnlineModel
if ($sub) {
foreach ($sub as $sk => $sv) {
$qTmp[$sk]['title'] = $sv['category_name'];
$qTmp[$sk]['link'] = Helpers::url('/home/onlineservicedetail', array('cateId' => $sv['id'], 'cateName' => $sv['category_name']));
$qTmp[$sk]['link'] = Helpers::url('/home/onlineservicedetail', array('cateInfo' => $sv['id'].'_'.$sv['category_name']));
}
}
$question[$key]['list'] = $qTmp;
... ...