|
@@ -15,15 +15,15 @@ class IndexController extends AbstractAction |
|
@@ -15,15 +15,15 @@ class IndexController extends AbstractAction |
15
|
*/
|
15
|
*/
|
16
|
public function indexAction()
|
16
|
public function indexAction()
|
17
|
{
|
17
|
{
|
18
|
- if (null !== $this->get('go')) {
|
|
|
19
|
- // 先检查COOKIE是否有访问过, 有则跳转到相应的频道页
|
|
|
20
|
- Index\HomeModel::goSwitchChannel();
|
|
|
21
|
- } else {
|
|
|
22
|
- // 设置客户端浏览器1小时内不改变,
|
|
|
23
|
- $this->setLastModified(mktime(date('H'), 0, 0, date('n'), date('j'), date('Y')));
|
|
|
24
|
- // 设置浏览器缓存5分钟
|
|
|
25
|
- $this->setExpires(300);
|
|
|
26
|
- }
|
18
|
+// if (null !== $this->get('go')) {
|
|
|
19
|
+// // 先检查COOKIE是否有访问过, 有则跳转到相应的频道页
|
|
|
20
|
+// Index\HomeModel::goSwitchChannel();
|
|
|
21
|
+// } else {
|
|
|
22
|
+// // 设置客户端浏览器1小时内不改变,
|
|
|
23
|
+// $this->setLastModified(mktime(date('H'), 0, 0, date('n'), date('j'), date('Y')));
|
|
|
24
|
+// // 设置浏览器缓存5分钟
|
|
|
25
|
+// $this->setExpires(300);
|
|
|
26
|
+// }
|
27
|
$result = IndexModel::getChannel();
|
27
|
$result = IndexModel::getChannel();
|
28
|
$result['background'] = Index\HomeModel::getBgImage();
|
28
|
$result['background'] = Index\HomeModel::getBgImage();
|
29
|
$result['channelPage'] = true;
|
29
|
$result['channelPage'] = true;
|