...
|
...
|
@@ -115,7 +115,7 @@ const serachFilterBrands = (req, res, next) => { |
|
|
const suggestHistory = (req, res, next) => {
|
|
|
search.getSuggest(req.query).then(result => {
|
|
|
|
|
|
if(req.query.json === '1') {
|
|
|
if (req.query.json === '1') {
|
|
|
return res.send(result);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -141,7 +141,7 @@ const suggestHistory = (req, res, next) => { |
|
|
const suggestRecommend = (req, res, next) => {
|
|
|
search.getSuggest(req.query).then(result => {
|
|
|
|
|
|
if(req.query.json === '1') {
|
|
|
if (req.query.json === '1') {
|
|
|
return res.send(result);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -164,4 +164,4 @@ module.exports = { |
|
|
serachFilterBrands,
|
|
|
suggestHistory,
|
|
|
suggestRecommend
|
|
|
} |
|
|
\ No newline at end of file |
|
|
}; |
...
|
...
|
|