...
|
...
|
@@ -25,34 +25,34 @@ class SearchData |
|
|
switch (APPLICATION_ENV) {
|
|
|
case 'production':
|
|
|
if ($type == 'sort') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/sortgroup.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/sortgroup.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/sortgroup.json';
|
|
|
}
|
|
|
elseif ($type == 'discount') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/discount.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/discount.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/discount.json';
|
|
|
}
|
|
|
elseif ($type == 'recent') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/recent.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/recent.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/recent.json';
|
|
|
}
|
|
|
elseif ($type == 'suggest') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/suggest.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/suggest.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/suggest.json';
|
|
|
}
|
|
|
else if($type == 'new-shelve') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/new-shelve.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/new-shelve.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/new-shelve.json';
|
|
|
}
|
|
|
elseif ($type == 'shop') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/shops.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/shops.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/shops.json';
|
|
|
}
|
|
|
elseif ($type == 'brand') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/brand/list.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/brand/list.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/brand/list.json';
|
|
|
}
|
|
|
return 'http://x.yohobuy.com/yohosearch/search.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/search.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/search.json';
|
|
|
|
|
|
case 'preview':
|
...
|
...
|
@@ -82,31 +82,31 @@ class SearchData |
|
|
case 'developer':
|
|
|
default:
|
|
|
if ($type == 'sort') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/sortgroup.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/sortgroup.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/sortgroup.json';
|
|
|
// return 'http://182.92.99.119:8080/yohosearch/sortgroup.json';
|
|
|
}
|
|
|
elseif ($type == 'discount') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/discount.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/discount.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/discount.json';
|
|
|
// return 'http://182.92.99.119:8080/yohosearch/discount.json';
|
|
|
}
|
|
|
elseif ($type == 'recent') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/recent.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/recent.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/recent.json';
|
|
|
// return 'http://182.92.99.119:8080/yohosearch/recent.json';
|
|
|
}
|
|
|
elseif ($type == 'suggest') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/suggest.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/suggest.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/suggest.json';
|
|
|
// return 'http://182.92.99.119:8080/yohosearch/suggest.json';
|
|
|
}
|
|
|
else if($type == 'new-shelve') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/new-shelve.json';//'http://182.92.99.119:8080/yohosearch/new-shelve.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/new-shelve.json';//'http://182.92.99.119:8080/yohosearch/new-shelve.json';
|
|
|
// return 'http://182.92.99.119:8080/yohosearch/new-shelve.json';//'http://182.92.99.119:8080/yohosearch/new-shelve.json';
|
|
|
}
|
|
|
elseif ($type == 'shop') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/shops.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/shops.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/shops.json';
|
|
|
// return 'http://182.92.99.119:8080/yohosearch/shops.json';
|
|
|
}
|
...
|
...
|
@@ -114,11 +114,11 @@ class SearchData |
|
|
return 'http://182.92.99.119:8080/yohosearch/search-once.json';
|
|
|
}
|
|
|
elseif ($type == 'brand') {
|
|
|
return 'http://x.yohobuy.com/yohosearch/brand/list.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/brand/list.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/brand/list.json';
|
|
|
// return 'http://182.92.99.119:8080/yohosearch/brand/list.json';
|
|
|
}
|
|
|
return 'http://x.yohobuy.com/yohosearch/search.json';
|
|
|
return 'http://search.yoho.cn/yohosearch/search.json';
|
|
|
//return 'http://101.200.31.165/yohosearch/search.json';
|
|
|
// return 'http://182.92.99.119:8080/yohosearch/search.json';
|
|
|
}
|
...
|
...
|
|