seo.js
427 Bytes
/*
* @Author: yyq
* @Date: 2018-05-07
*/
'use strict';
const seoModel = require('../models/seo-service'); // seo 页 model
const hot = (req, res, next) => {
return req.ctx(seoModel).getHotKeywordData(req.params.id, req.query, req.yoho.channel).then(result => {
if (!result) {
return next();
}
res.render('seo/hot', result);
}).catch(next);
};
module.exports = {
hot
};