...
|
...
|
@@ -147,7 +147,7 @@ exports.editor = (req, res, next) => { |
|
|
let pageSize = req.query.pageSize || 20;
|
|
|
|
|
|
Promise.all([
|
|
|
guangModel.getAuthor(authorId),
|
|
|
guangModel.getAuthor(channel, authorId),
|
|
|
guangModel.getArticleList(gender, null, uid, udid, page, '', authorId, pageSize, channel, true),
|
|
|
guangModel.getHotTags(1, 20, channel, isHotDegrade),
|
|
|
guangModel.getAds(channel, isAdDegrade),
|
...
|
...
|
@@ -245,7 +245,7 @@ exports.detail = (req, res, next) => { |
|
|
];
|
|
|
|
|
|
if (info.authorId) {
|
|
|
promises.push(guangModel.getAuthor(info.authorId));
|
|
|
promises.push(guangModel.getAuthor(channel, info.authorId));
|
|
|
} else {
|
|
|
promises.push({});
|
|
|
}
|
...
|
...
|
|