Authored by yyq

search index return

@@ -32,7 +32,7 @@ exports.index = (req, res, next) => { @@ -32,7 +32,7 @@ exports.index = (req, res, next) => {
32 return; 32 return;
33 } 33 }
34 34
35 - search.getSearchData(params, req.yoho.channel).then(result => { 35 + return search.getSearchData(params, req.yoho.channel).then(result => {
36 Object.assign(resData, result); 36 Object.assign(resData, result);
37 37
38 if (!_.get(resData, 'search.goods') || !_.get(resData, 'search.goods').length) { 38 if (!_.get(resData, 'search.goods') || !_.get(resData, 'search.goods').length) {