Authored by 郝肖肖

'hotORchangpin-404'

@@ -26,6 +26,10 @@ exports.index = (req, res, next) => { @@ -26,6 +26,10 @@ exports.index = (req, res, next) => {
26 fuzzyWord: list.fuzzyWord 26 fuzzyWord: list.fuzzyWord
27 }; 27 };
28 28
  29 + if (!list || !list.fuzzyWord.length) {
  30 + return next();
  31 + }
  32 +
29 return res.render('chanpin', Object.assign({ 33 return res.render('chanpin', Object.assign({
30 css: yield css('chanpin.css'), 34 css: yield css('chanpin.css'),
31 title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`, 35 title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`,
@@ -26,6 +26,10 @@ exports.index = (req, res, next) => { @@ -26,6 +26,10 @@ exports.index = (req, res, next) => {
26 fuzzyWord: list.fuzzyWord 26 fuzzyWord: list.fuzzyWord
27 }; 27 };
28 28
  29 + if (!list || !list.fuzzyWord.length) {
  30 + return next();
  31 + }
  32 +
29 return res.render('hot', Object.assign({ 33 return res.render('hot', Object.assign({
30 css: yield css('chanpin.css'), 34 css: yield css('chanpin.css'),
31 title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`, 35 title: `${goodsList.name}价格_图片_品牌_怎么样-YOHO!BUY有货`,