Authored by 陈峰

解决关键词搜索重复query字段时造成报错并阻塞访问请求

... ... @@ -32,6 +32,7 @@ const list = (req, res, next) => {
params.shopId = params.shop_id;
}
params.query = query;
params.isApp = req.yoho.isApp;
params.physical_channel = req.yoho.channel && searchProcess.getChannelType(req.yoho.channel);
... ... @@ -133,7 +134,7 @@ const list = (req, res, next) => {
});
}).catch(next);
}
});
}).catch(next);
};
/**
... ...
... ... @@ -10,7 +10,6 @@ const searchProcess = require(`${utils}/search-process`);
const _ = require('lodash');
const logger = global.yoho.logger;
const api = global.yoho.API;
const camelCase = global.yoho.camelCase;
const cache = require('memory-cache');
... ...