...
|
...
|
@@ -60,7 +60,7 @@ const editor = (req, res, next) => { |
|
|
} else {
|
|
|
return next();
|
|
|
}
|
|
|
|
|
|
|
|
|
}).catch(next);
|
|
|
|
|
|
};
|
...
|
...
|
@@ -87,7 +87,7 @@ const pageData = (req, res, next) => { |
|
|
authorId = req.query.authorId,
|
|
|
isApp = req.yoho.isApp || false,
|
|
|
isTab = req.query.isTab || false,
|
|
|
showAuthor = true;
|
|
|
showAuthor = false;
|
|
|
|
|
|
let uid = req.user.uid,
|
|
|
udid = req.sessionID;
|
...
|
...
|
@@ -101,7 +101,7 @@ const pageData = (req, res, next) => { |
|
|
return;
|
|
|
}
|
|
|
if (!authorId && isNaN(authorId)) {
|
|
|
showAuthor = false;
|
|
|
showAuthor = true;
|
|
|
}
|
|
|
return indexModel.getPageData(gender, sortId, uid, udid, page, tag, authorId, isApp, showAuthor, isTab).then(data => {
|
|
|
if (data) {
|
...
|
...
|
@@ -178,7 +178,7 @@ const tag = (req, res, next) => { |
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
responseData.pageHeader.navTitle = param.tag || '标签';
|
|
|
|
|
|
|
...
|
...
|
|