modify to fixes bug kids page return home page
Showing
1 changed file
with
5 additions
and
1 deletions
@@ -14,6 +14,11 @@ class BoysController extends AbstractAction | @@ -14,6 +14,11 @@ class BoysController extends AbstractAction | ||
14 | */ | 14 | */ |
15 | public function indexAction() | 15 | public function indexAction() |
16 | { | 16 | { |
17 | + if (null !== $this->get('go')) { | ||
18 | + // 先检查COOKIE是否有访问过, 有则跳转到相应的频道页 | ||
19 | + Index\HomeModel::goSwitchChannel(); | ||
20 | + } | ||
21 | + | ||
17 | // 设置COOKIE标识用户访问过该页面了 | 22 | // 设置COOKIE标识用户访问过该页面了 |
18 | Index\HomeModel::setSwitchToCookie(Index\HomeModel::COOKIE_NAME_BOYS); | 23 | Index\HomeModel::setSwitchToCookie(Index\HomeModel::COOKIE_NAME_BOYS); |
19 | 24 | ||
@@ -51,7 +56,6 @@ class BoysController extends AbstractAction | @@ -51,7 +56,6 @@ class BoysController extends AbstractAction | ||
51 | } | 56 | } |
52 | 57 | ||
53 | $this->echoJson($bottomBanner); | 58 | $this->echoJson($bottomBanner); |
54 | - | ||
55 | } while (false); | 59 | } while (false); |
56 | } | 60 | } |
57 | 61 |
-
Please register or login to post a comment