...
|
...
|
@@ -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);
|
|
|
};
|
...
|
...
|
|