...
|
...
|
@@ -25,112 +25,112 @@ class SearchData |
|
|
switch (APPLICATION_ENV) {
|
|
|
case 'production':
|
|
|
if ($type == 'sort') {
|
|
|
return '//search.yohoops.org/yohosearch/sortgroup.json';
|
|
|
// return '//101.200.31.165/yohosearch/sortgroup.json';
|
|
|
return 'http://search.yohoops.org/yohosearch/sortgroup.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/sortgroup.json';
|
|
|
}
|
|
|
elseif ($type == 'discount') {
|
|
|
return '//search.yohoops.org/yohosearch/discount.json';
|
|
|
// return '//101.200.31.165/yohosearch/discount.json';
|
|
|
return 'http://search.yohoops.org/yohosearch/discount.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/discount.json';
|
|
|
}
|
|
|
elseif ($type == 'recent') {
|
|
|
return '//search.yohoops.org/yohosearch/recent.json';
|
|
|
// return '//101.200.31.165/yohosearch/recent.json';
|
|
|
return 'http://search.yohoops.org/yohosearch/recent.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/recent.json';
|
|
|
}
|
|
|
elseif ($type == 'suggest') {
|
|
|
return '//search.yohoops.org/yohosearch/suggest.json';
|
|
|
// return '//101.200.31.165/yohosearch/suggest.json';
|
|
|
return 'http://search.yohoops.org/yohosearch/suggest.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/suggest.json';
|
|
|
}
|
|
|
else if($type == 'new-shelve') {
|
|
|
return '//search.yohoops.org/yohosearch/new-shelve.json';
|
|
|
// return '//101.200.31.165/yohosearch/new-shelve.json';
|
|
|
return 'http://search.yohoops.org/yohosearch/new-shelve.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/new-shelve.json';
|
|
|
}
|
|
|
elseif ($type == 'shop') {
|
|
|
return '//search.yohoops.org/yohosearch/shops.json';
|
|
|
// return '//101.200.31.165/yohosearch/shops.json';
|
|
|
return 'http://search.yohoops.org/yohosearch/shops.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/shops.json';
|
|
|
}
|
|
|
elseif ($type == 'brand') {
|
|
|
return '//search.yohoops.org/yohosearch/brand/list.json';
|
|
|
// return '//101.200.31.165/yohosearch/brand/list.json';
|
|
|
return 'http://search.yohoops.org/yohosearch/brand/list.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/brand/list.json';
|
|
|
}
|
|
|
return '//search.yohoops.org/yohosearch/search.json';
|
|
|
// return '//101.200.31.165/yohosearch/search.json';
|
|
|
return 'http://search.yohoops.org/yohosearch/search.json';
|
|
|
// return 'http://101.200.31.165/yohosearch/search.json';
|
|
|
|
|
|
case 'preview':
|
|
|
if ($type == 'sort') {
|
|
|
return '//192.168.10.64:8080/yohosearch/sortgroup.json';
|
|
|
return 'http://192.168.10.64:8080/yohosearch/sortgroup.json';
|
|
|
}
|
|
|
elseif ($type == 'discount') {
|
|
|
return '//192.168.10.64:8080/yohosearch/discount.json';
|
|
|
return 'http://192.168.10.64:8080/yohosearch/discount.json';
|
|
|
}
|
|
|
elseif ($type == 'recent') {
|
|
|
return '//192.168.10.64:8080/yohosearch/recent.json';
|
|
|
return 'http://192.168.10.64:8080/yohosearch/recent.json';
|
|
|
}
|
|
|
elseif ($type == 'suggest') {
|
|
|
return '//192.168.10.64:8080/yohosearch/suggest.json';
|
|
|
return 'http://192.168.10.64:8080/yohosearch/suggest.json';
|
|
|
}
|
|
|
else if($type == 'new-shelve') {
|
|
|
return '//192.168.10.64:8080/yohosearch/new-shelve.json';
|
|
|
return 'http://192.168.10.64:8080/yohosearch/new-shelve.json';
|
|
|
}
|
|
|
elseif ($type == 'shop') {
|
|
|
return '//192.168.10.64:8080/yohosearch/shops.json';
|
|
|
return 'http://192.168.10.64:8080/yohosearch/shops.json';
|
|
|
}
|
|
|
elseif ($type == 'brand') {
|
|
|
return '//192.168.10.64:8080/yohosearch/brand/list.json';
|
|
|
return 'http://192.168.10.64:8080/yohosearch/brand/list.json';
|
|
|
}
|
|
|
return '//192.168.102.216:8080/yohosearch/search.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/search.json';
|
|
|
case 'testing':
|
|
|
if ($type == 'sort') {
|
|
|
return '//testing.yohoops.org/yohosearch/sortgroup.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/sortgroup.json';
|
|
|
}
|
|
|
elseif ($type == 'discount') {
|
|
|
return '//testing.yohoops.org/yohosearch/discount.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/discount.json';
|
|
|
}
|
|
|
elseif ($type == 'recent') {
|
|
|
return '//testing.yohoops.org/yohosearch/recent.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/recent.json';
|
|
|
}
|
|
|
elseif ($type == 'suggest') {
|
|
|
return '//testing.yohoops.org/yohosearch/suggest.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/suggest.json';
|
|
|
}
|
|
|
else if($type == 'new-shelve') {
|
|
|
return '//testing.yohoops.org/yohosearch/new-shelve.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/new-shelve.json';
|
|
|
}
|
|
|
elseif ($type == 'shop') {
|
|
|
return '//testing.yohoops.org/yohosearch/shops.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/shops.json';
|
|
|
}
|
|
|
elseif ($type == 'search') {
|
|
|
return '//testing.yohoops.org/yohosearch/search.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/search.json';
|
|
|
}
|
|
|
elseif ($type == 'brand') {
|
|
|
return '//testing.yohoops.org/yohosearch/brand/list.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/brand/list.json';
|
|
|
}
|
|
|
return '//testing.yohoops.org/yohosearch/search.json';
|
|
|
return 'http://testing.yohoops.org/yohosearch/search.json';
|
|
|
case 'developer':
|
|
|
default:
|
|
|
if ($type == 'sort') {
|
|
|
return '//192.168.102.216:8080/yohosearch/sortgroup.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/sortgroup.json';
|
|
|
}
|
|
|
elseif ($type == 'discount') {
|
|
|
return '//192.168.102.216:8080/yohosearch/discount.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/discount.json';
|
|
|
}
|
|
|
elseif ($type == 'recent') {
|
|
|
return '//192.168.102.216:8080/yohosearch/recent.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/recent.json';
|
|
|
}
|
|
|
elseif ($type == 'suggest') {
|
|
|
return '//192.168.102.216:8080/yohosearch/suggest.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/suggest.json';
|
|
|
}
|
|
|
else if($type == 'new-shelve') {
|
|
|
return '//192.168.102.216:8080/yohosearch/new-shelve.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/new-shelve.json';
|
|
|
}
|
|
|
elseif ($type == 'shop') {
|
|
|
return '//192.168.102.216:8080/yohosearch/shops.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/shops.json';
|
|
|
}
|
|
|
elseif ($type == 'search') {
|
|
|
return '//192.168.102.216:8080/yohosearch/search.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/search.json';
|
|
|
}
|
|
|
elseif ($type == 'brand') {
|
|
|
return '//192.168.102.216:8080/yohosearch/brand/list.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/brand/list.json';
|
|
|
}
|
|
|
return '//192.168.102.216:8080/yohosearch/search.json';
|
|
|
return 'http://192.168.102.216:8080/yohosearch/search.json';
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|