...
|
...
|
@@ -215,7 +215,7 @@ exports.detail = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
if (pjax) {
|
|
|
req.ctx(guangModel).getArticleComments(id, page, pageSize).then(ret => {
|
|
|
req.ctx(guangModel).getArticleComments(uid, id, page, pageSize).then(ret => {
|
|
|
|
|
|
res.set('Cache-Control', 'no-cache');
|
|
|
res.render('guang/detail-comment', {
|
...
|
...
|
@@ -248,7 +248,7 @@ exports.detail = (req, res, next) => { |
|
|
headerModel.requestHeaderData(channel),
|
|
|
reqCtx.getArticleContent(id),
|
|
|
reqCtx.getHotTags(1, 20, channel, isHotDegrade),
|
|
|
reqCtx.getArticleComments(id, page, pageSize),
|
|
|
reqCtx.getArticleComments(uid, id, page, pageSize),
|
|
|
reqCtx.getArticleBaseInfo(id, uid, udid),
|
|
|
reqCtx.getArticleRelateBrand(id),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10, channel),
|
...
|
...
|
@@ -390,7 +390,7 @@ exports.comment = (req, res) => { |
|
|
req.session['comment_' + udid] = null;
|
|
|
}
|
|
|
|
|
|
return req.ctx(guangModel).getArticleComments(id, 1, 20);
|
|
|
return req.ctx(guangModel).getArticleComments(uid, id, 1, 20);
|
|
|
}).then(commentInfo => {
|
|
|
|
|
|
res.render('guang/detail-comment', {
|
...
|
...
|
|