Authored by mark

增加seven-product模板

... ... @@ -19,7 +19,7 @@ exports.index = (req, res, next) => {
channelModel.getContent(channelType).then(data => {
// channel为空不缓存
var clone = data['channel'][3]['recommend']['tplrecommend'][0]['products'][0];
var obj = {'channel':
{'seven': {'sevendata': [{'products': [clone, clone, clone, clone, clone, clone, clone]}]} },
... ... @@ -27,9 +27,9 @@ exports.index = (req, res, next) => {
'page': 'channel',
'pageType': 'boys'
};
if (_.isEmpty(data.channel)) {
res.set('Cache-Control', 'no-cache');
}
if (_.isEmpty(data.channel)) {
res.set('Cache-Control', 'no-cache');
}
res.render('channel', obj);
}).catch(next);
};
... ...