Authored by 周少峰

接口地址调整

... ... @@ -25,6 +25,10 @@ class SearchData extends \LibModels\Wap\Product\SearchData
elseif ($type == 'recent') {
return 'http://100.98.132.63/yohosearch/recent.json';
}
elseif ($type == 'suggest') {
//return 'http://101.200.31.165/yohosearch/suggest.json';
return 'http://100.98.132.63/yohosearch/suggest.json';
}
elseif ($type == 'shop') {
return 'http://100.98.132.63/yohosearch/shops.json';
}
... ... @@ -45,6 +49,10 @@ class SearchData extends \LibModels\Wap\Product\SearchData
//return 'http://101.200.31.165/yohosearch/recent.json';
return 'http://192.168.10.64:8080/yohosearch/recent.json';
}
elseif ($type == 'suggest') {
// return 'http://101.200.31.165/yohosearch/suggest.json';
return 'http://192.168.10.64:8080/yohosearch/suggest.json';
}
elseif ($type == 'shop') {
//return 'http://101.200.31.165/yohosearch/shops.json';
return 'http://192.168.10.64:8080/yohosearch/shops.json';
... ...
... ... @@ -117,6 +117,9 @@ class HelperSearch
{
$params = self::$params;
$goods = array();
if (empty($product)) {
return $goods;
}
foreach($product as $key => $val){
//NEW
$isNew = $val['is_new'] == 'Y' ? true : false;
... ...