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