...
|
...
|
@@ -329,7 +329,6 @@ class HomeModel |
|
|
public static function getChannel()
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
if (USE_CACHE) {
|
|
|
$key = CacheConfig::KEY_ACTION_INDEX_CONFIG;
|
|
|
// 先尝试获取一级缓存(master), 有数据则直接返回.
|
...
|
...
|
@@ -340,6 +339,7 @@ class HomeModel |
|
|
}
|
|
|
|
|
|
$data = IndexData::channelData();
|
|
|
|
|
|
if (!empty($data['data']['list'])) {
|
|
|
$build = array();
|
|
|
foreach ($data['data']['list'] as $value) {
|
...
|
...
|
@@ -372,7 +372,9 @@ class HomeModel |
|
|
default:
|
|
|
continue;
|
|
|
}
|
|
|
$result['channelList'][] = $build;
|
|
|
if (!empty($build)) {
|
|
|
$result['channelList'][] = $build;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|