Authored by hf

code review by fei.hong : fixes bug to modify Helpers.php undifined vars and modify searchd ip

... ... @@ -54,7 +54,7 @@ class DetailData
}
// 获取资讯
$article = Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE, 'getArticle', array($id, $clientType), false);
$article = Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE, 'getArticle', array($id, $clientType), false, 1500);
if (!isset($article['author_id'])) {
// 再尝试获取二级缓存(slave), 有数据则直接返回.
$cached = Cache::get($key, 'slave');
... ...
... ... @@ -35,7 +35,7 @@ class SearchData
case 'test':
case 'developer':
default:
return 'http://192.168.10.64:8080/yohosearch/search.json';
return 'http://101.201.178.220/yohosearch/search.json';
}
}
... ...