Authored by xuhongyun

搜索接口变更

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