...
|
...
|
@@ -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,9 +372,11 @@ class HomeModel |
|
|
default:
|
|
|
continue;
|
|
|
}
|
|
|
if (!empty($build)) {
|
|
|
$result['channelList'][] = $build;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (USE_CACHE) {
|
|
|
// 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据.
|
...
|
...
|
|