...
|
...
|
@@ -362,7 +362,9 @@ const index = (req, res, next) => { |
|
|
data.guang.channel = channel;
|
|
|
data.guang.isShare = isShare;
|
|
|
|
|
|
if (detail.code !== 400) {
|
|
|
if (detail.code === 400) {
|
|
|
return next();
|
|
|
}
|
|
|
if (!detail.getArticle) {
|
|
|
// TODO 跳转到逛首页
|
|
|
return;
|
...
|
...
|
@@ -395,9 +397,10 @@ const index = (req, res, next) => { |
|
|
pageView: detail.getArticle.pageViews,
|
|
|
content: []
|
|
|
};
|
|
|
if (!detail.getArticleContent) {
|
|
|
return next();
|
|
|
}
|
|
|
|
|
|
|
|
|
if (detail.getArticleContent) {
|
|
|
// 生成内容部分
|
|
|
return _pageArticleContent(detail.getArticleContent,
|
|
|
isApp,
|
...
|
...
|
@@ -444,13 +447,7 @@ const index = (req, res, next) => { |
|
|
localCss: true,
|
|
|
isShare: isShare
|
|
|
}, data, parameter));
|
|
|
});
|
|
|
} else {
|
|
|
next();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}).catch(next);
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
...
|
...
|
|