Authored by xuhongyun

搜索接口变更

@@ -21,7 +21,7 @@ module.exports = { @@ -21,7 +21,7 @@ module.exports = {
21 for (var key in req.body) { 21 for (var key in req.body) {
22 params.push(key + "=" + encodeURI(req.body[key])); 22 params.push(key + "=" + encodeURI(req.body[key]));
23 } 23 }
24 - var url = yohoSearch + "/search.json?viewNum=" + size + "&" + params.join('&'); 24 + var url = yohoSearch + "/productindex/productList.json?viewNum=" + size + "&" + params.join('&');
25 console.info("搜索接口请求地址:"+url); 25 console.info("搜索接口请求地址:"+url);
26 request({url: url}, function (error, response, body) { 26 request({url: url}, function (error, response, body) {
27 if (error) { 27 if (error) {