Authored by 周少峰

search api

... ... @@ -80,30 +80,30 @@ class SearchData
return 'http://192.168.102.216:8087/yohosearch/search.json';
case 'testing':
if ($type == 'sort') {
return 'http://10.66.101.4:8080/yohosearch/sortgroup.json';
return 'http://10.66.100.4:8080/yohosearch/sortgroup.json';
}
elseif ($type == 'discount') {
return 'http://10.66.101.4:8080/yohosearch/discount.json';
return 'http://10.66.100.4:8080/yohosearch/discount.json';
}
elseif ($type == 'recent') {
return 'http://10.66.101.4:8080/yohosearch/recent.json';
return 'http://10.66.100.4:8080/yohosearch/recent.json';
}
elseif ($type == 'suggest') {
return 'http://10.66.101.4:8080/yohosearch/suggest.json';
return 'http://10.66.100.4:8080/yohosearch/suggest.json';
}
else if($type == 'new-shelve') {
return 'http://10.66.101.4:8080/yohosearch/new-shelve.json';
return 'http://10.66.100.4:8080/yohosearch/new-shelve.json';
}
elseif ($type == 'shop') {
return 'http://10.66.101.4:8080/yohosearch/shops.json';
return 'http://10.66.100.4:8080/yohosearch/shops.json';
}
elseif ($type == 'search') {
return 'http://10.66.101.4:8080/yohosearch/search.json';
return 'http://10.66.100.4:8080/yohosearch/search.json';
}
elseif ($type == 'brand') {
return 'http://10.66.101.4:8080/yohosearch/brand/list.json';
return 'http://10.66.100.4:8080/yohosearch/brand/list.json';
}
return 'http://10.66.101.4:8080/yohosearch/search.json';
return 'http://10.66.100.4:8080/yohosearch/search.json';
case 'developer':
default:
if ($type == 'sort') {
... ...