Authored by 周少峰

search default

@@ -618,6 +618,9 @@ class SearchData @@ -618,6 +618,9 @@ class SearchData
618 if(!empty($condition)) { 618 if(!empty($condition)) {
619 $param = Yohobuy::param(); 619 $param = Yohobuy::param();
620 $param['method'] = 'web.search.search'; 620 $param['method'] = 'web.search.search';
  621 + $param['sales'] = 'Y';
  622 + $param['outlets'] = 2;
  623 + $param['stocknumber'] = 1;
621 $param += $condition; 624 $param += $condition;
622 $param['client_secret'] = Sign::getSign($param); 625 $param['client_secret'] = Sign::getSign($param);
623 626
@@ -65,9 +65,6 @@ class IndexModel @@ -65,9 +65,6 @@ class IndexModel
65 $url['fav_brand'] = SearchData::getBrandListUrl(); 65 $url['fav_brand'] = SearchData::getBrandListUrl();
66 //新品上架 66 //新品上架
67 $productParam['new'] = 'Y'; 67 $productParam['new'] = 'Y';
68 - $productParam['sales'] = 'Y';  
69 - $productParam['outlets'] = 2;  
70 - $productParam['stocknumber'] = 1;  
71 $productParam['order'] = 's_t_desc'; 68 $productParam['order'] = 's_t_desc';
72 $productParam['viewNum'] = 10; 69 $productParam['viewNum'] = 10;
73 $url['new'] = SearchData::webSearchByCondition($productParam, true); 70 $url['new'] = SearchData::webSearchByCondition($productParam, true);