...
|
...
|
@@ -114,14 +114,15 @@ exports.getSearchData = (params, channel) => { |
|
|
shopEntry: result[3],
|
|
|
name: params.query,
|
|
|
suggest: termsSuggestion ? termsSuggestion.join(',').split(',').splice(0, 3) : false,
|
|
|
changedQuery: result[2].data.isChangedQuery,
|
|
|
changedQuery: result[2].data.isChangedQuery == 'Y',
|
|
|
suggestFirst: finalResult.search.suggestFirst,
|
|
|
suggestSecond: finalResult.search.suggestSecond
|
|
|
});
|
|
|
|
|
|
if (finalResult.search.changedQuery === 'Y') {
|
|
|
if (finalResult.search.changedQuery) {
|
|
|
|
|
|
finalResult.search.suggestFirst = finalResult.search.suggest[0];
|
|
|
finalResult.search.suggestSecond = _.reverse(_.slice(_.reverse(finalResult.search.suggest)));
|
|
|
finalResult.search.suggestSecond = _.slice(termsSuggestion, 1, termsSuggestion.length).splice(0,3);
|
|
|
}
|
|
|
|
|
|
finalResult.criteo = {skn: searchHandler.getCriteo(_.get(finalResult.search, 'goods'))};
|
...
|
...
|
@@ -236,11 +237,6 @@ exports.getSearchLessProduct = (channel, uid, udid, page) => { |
|
|
}
|
|
|
};
|
|
|
|
|
|
console.log('**************');
|
|
|
console.log(page);
|
|
|
console.log('**************');
|
|
|
console.log(_.isNumber(page));
|
|
|
console.log(typeof page);
|
|
|
let channelNum = 1;
|
|
|
|
|
|
if (!_.isNumber(page)) {
|
...
|
...
|
|