Authored by hf

modify to fixes bug kids page return home page

... ... @@ -14,6 +14,11 @@ class BoysController extends AbstractAction
*/
public function indexAction()
{
if (null !== $this->get('go')) {
// 先检查COOKIE是否有访问过, 有则跳转到相应的频道页
Index\HomeModel::goSwitchChannel();
}
// 设置COOKIE标识用户访问过该页面了
Index\HomeModel::setSwitchToCookie(Index\HomeModel::COOKIE_NAME_BOYS);
... ... @@ -49,9 +54,8 @@ class BoysController extends AbstractAction
if (empty($bottomBanner)) {
break;
}
$this->echoJson($bottomBanner);
} while (false);
}
... ...