Authored by yyq

fix notfond

... ... @@ -9,6 +9,10 @@ const seoModel = require('../models/seo-service'); // seo 页 model
const hot = (req, res, next) => {
return req.ctx(seoModel).getHotKeywordDate(req.params.id, req.query, req.yoho.channel).then(result => {
if (!result) {
return next();
}
res.render('seo/hot', result);
}).catch(next);
};
... ...
... ... @@ -130,7 +130,8 @@ module.exports = class extends global.yoho.BaseModel {
}
if (!_.get(keyword, 'name')) {
return Promise.reject(`cannot find hot keywords by id(${id})`);
logger.error(`cannot find hot keywords by id(${id})`);
return false;
}
params.query = keyword.name;
... ...