Authored by 周少峰

add notice

... ... @@ -57,14 +57,9 @@ class IndexController extends AbstractAction
}
$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);
if (isset($data['code']) && $data['code'] === 200 && isset($data['data']['open']) && $data['data']['open'] == 'Y' && isset($data['data']['list']) && !empty($data['data']['list'])) {
$notice = $data['data']['list'];
}
$this->echoJson($notice);
}
... ...