Authored by Rock Zhang

对搜索添加只搜索在售商品的条件

@@ -18,14 +18,14 @@ class Yohobuy @@ -18,14 +18,14 @@ class Yohobuy
18 { 18 {
19 19
20 /* 正式环境 */ 20 /* 正式环境 */
21 - const API_URL = 'http://api2.open.yohobuy.com/';  
22 - const SERVICE_URL = 'http://service.api.yohobuy.com/';  
23 - const YOHOBUY_URL = 'http://www.yohobuy.com/'; 21 +// const API_URL = 'http://api2.open.yohobuy.com/';
  22 +// const SERVICE_URL = 'http://service.api.yohobuy.com/';
  23 +// const YOHOBUY_URL = 'http://www.yohobuy.com/';
24 24
25 // /* 测试环境 */ 25 // /* 测试环境 */
26 -// const API_URL = 'http://test2.open.yohobuy.com/';  
27 -// const SERVICE_URL = 'http://test.service.api.yohobuy.com/';  
28 -// const YOHOBUY_URL = 'http://www.yohobuy.com/'; 26 + const API_URL = 'http://test2.open.yohobuy.com/';
  27 + const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
  28 + const YOHOBUY_URL = 'http://www.yohobuy.com/';
29 29
30 /** 30 /**
31 * 私钥列表 31 * 私钥列表
@@ -143,6 +143,7 @@ class SearchData @@ -143,6 +143,7 @@ class SearchData
143 143
144 $param = array(); 144 $param = array();
145 $param['status'] = 1; // 是否上架,1表示在架,2表示不在 145 $param['status'] = 1; // 是否上架,1表示在架,2表示不在
  146 + $param['sales'] = 1; // 只搜索销售的产品
146 // $param['needFilter'] = 1; // 是否需要返回筛选条件 147 // $param['needFilter'] = 1; // 是否需要返回筛选条件
147 if (!isset($condition['order'])) { 148 if (!isset($condition['order'])) {
148 $param['order'] = $orderMaps['s_t_desc']; 149 $param['order'] = $orderMaps['s_t_desc'];