...
|
...
|
@@ -39,7 +39,7 @@ exports.index = (req, res, next) => { |
|
|
reqCtx.getArticleList(gender, type, uid, udid, page, '', '', pageSize, channel, true),
|
|
|
reqCtx.getHotTags(page, pageSize, channel, isHotDegrade),
|
|
|
reqCtx.getAds(channel, isAdDegrade),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10, channel),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10),
|
|
|
headerModel.requestHeaderData(channel),
|
|
|
reqCtx.getTopList(gender, uid, udid, page, true)
|
|
|
]).then(ret => {
|
...
|
...
|
@@ -102,7 +102,7 @@ exports.tags = (req, res, next) => { |
|
|
reqCtx.getArticleList(gender, 0, uid, udid, page, query, '', pageSize, channel, true),
|
|
|
reqCtx.getHotTags(1, 20, channel, isHotDegrade),
|
|
|
reqCtx.getAds(channel, isAdDegrade),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10, channel),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10),
|
|
|
headerModel.requestHeaderData(channel)
|
|
|
]).then(ret => {
|
|
|
|
...
|
...
|
@@ -162,7 +162,7 @@ exports.editor = (req, res, next) => { |
|
|
reqCtx.getArticleList(gender, null, uid, udid, page, '', authorId, pageSize, channel, true),
|
|
|
reqCtx.getHotTags(1, 20, channel, isHotDegrade),
|
|
|
reqCtx.getAds(channel, isAdDegrade),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10, channel),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10),
|
|
|
headerModel.requestHeaderData(channel)
|
|
|
]).then(ret => {
|
|
|
|
...
|
...
|
@@ -199,7 +199,7 @@ exports.editor = (req, res, next) => { |
|
|
*/
|
|
|
exports.detail = (req, res, next) => {
|
|
|
|
|
|
let id = req.params.id || req.query.id;
|
|
|
let id = req.params.id || req.query.id || req.params[0];
|
|
|
let page = req.query.page || 1;
|
|
|
let pageSize = req.query.pageSize || 10;
|
|
|
let col = req.query.col || 0;
|
...
|
...
|
@@ -254,7 +254,7 @@ exports.detail = (req, res, next) => { |
|
|
reqCtx.getArticleComments(udid, uid, id, page, pageSize),
|
|
|
reqCtx.getArticleBaseInfo(id, uid, udid),
|
|
|
reqCtx.getArticleRelateBrand(id),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10, channel),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10),
|
|
|
reqCtx.getAds(channel, isAdDegrade),
|
|
|
tdk('article', id, req)
|
|
|
];
|
...
|
...
|
@@ -266,7 +266,7 @@ exports.detail = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
if (info.tag) {
|
|
|
promises.push(req.ctx(guangModel).getRelateArticleList(id, info.tag, 2, channel));
|
|
|
promises.push(req.ctx(guangModel).getRelateArticleList(id, info.tag, 2));
|
|
|
} else {
|
|
|
promises.push({});
|
|
|
}
|
...
|
...
|
|