...
|
...
|
@@ -45,12 +45,13 @@ class DetailData |
|
|
// 先尝试获取二级缓存(slave), 有数据则直接返回.
|
|
|
$cached = Cache::get($key, 'master');
|
|
|
if (!empty($cached)) {
|
|
|
Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE, 'getArticle', array($id, $clientType), false, 1000);
|
|
|
return $cached;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 获取资讯
|
|
|
$article = Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE, 'getArticle', array($id, $clientType), false, 1000);
|
|
|
$article = Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE, 'getArticle', array($id, $clientType), false);
|
|
|
if (!isset($article['author_id'])) {
|
|
|
return $result;
|
|
|
}
|
...
|
...
|
|