...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
use Action\AbstractAction;
|
|
|
use Plugin\Helpers;
|
|
|
use LibModels\Wap\Home\IndexData;
|
|
|
|
|
|
/**
|
|
|
* 频道选择
|
...
|
...
|
@@ -46,4 +47,25 @@ class IndexController extends AbstractAction |
|
|
$this->_view->display('systemUpdate');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 公告
|
|
|
*/
|
|
|
public function noticeAction()
|
|
|
{
|
|
|
if (!$this->isAjax()) {
|
|
|
exit;
|
|
|
}
|
|
|
$notice = array();
|
|
|
$data = IndexData::getNotice();
|
|
|
do {
|
|
|
if ($data['code'] != 200 || !isset($data['open']) || $data['open'] != 'Y' || !isset($data['open']) || empty($data['list'])) {
|
|
|
break;
|
|
|
}
|
|
|
foreach ($data['list'] as $key => $val) {
|
|
|
|
|
|
}
|
|
|
} while(false);
|
|
|
$this->echoJson($notice);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|