|
@@ -60,7 +60,7 @@ const editor = (req, res, next) => { |
|
@@ -60,7 +60,7 @@ const editor = (req, res, next) => { |
60
|
} else {
|
60
|
} else {
|
61
|
return next();
|
61
|
return next();
|
62
|
}
|
62
|
}
|
63
|
-
|
63
|
+
|
64
|
}).catch(next);
|
64
|
}).catch(next);
|
65
|
|
65
|
|
66
|
};
|
66
|
};
|
|
@@ -87,7 +87,7 @@ const pageData = (req, res, next) => { |
|
@@ -87,7 +87,7 @@ const pageData = (req, res, next) => { |
87
|
authorId = req.query.authorId,
|
87
|
authorId = req.query.authorId,
|
88
|
isApp = req.yoho.isApp || false,
|
88
|
isApp = req.yoho.isApp || false,
|
89
|
isTab = req.query.isTab || false,
|
89
|
isTab = req.query.isTab || false,
|
90
|
- showAuthor = true;
|
90
|
+ showAuthor = false;
|
91
|
|
91
|
|
92
|
let uid = req.user.uid,
|
92
|
let uid = req.user.uid,
|
93
|
udid = req.sessionID;
|
93
|
udid = req.sessionID;
|
|
@@ -101,7 +101,7 @@ const pageData = (req, res, next) => { |
|
@@ -101,7 +101,7 @@ const pageData = (req, res, next) => { |
101
|
return;
|
101
|
return;
|
102
|
}
|
102
|
}
|
103
|
if (!authorId && isNaN(authorId)) {
|
103
|
if (!authorId && isNaN(authorId)) {
|
104
|
- showAuthor = false;
|
104
|
+ showAuthor = true;
|
105
|
}
|
105
|
}
|
106
|
return indexModel.getPageData(gender, sortId, uid, udid, page, tag, authorId, isApp, showAuthor, isTab).then(data => {
|
106
|
return indexModel.getPageData(gender, sortId, uid, udid, page, tag, authorId, isApp, showAuthor, isTab).then(data => {
|
107
|
if (data) {
|
107
|
if (data) {
|
|
@@ -178,7 +178,7 @@ const tag = (req, res, next) => { |
|
@@ -178,7 +178,7 @@ const tag = (req, res, next) => { |
178
|
|
178
|
|
179
|
};
|
179
|
};
|
180
|
|
180
|
|
181
|
-
|
181
|
+
|
182
|
responseData.pageHeader.navTitle = param.tag || '标签';
|
182
|
responseData.pageHeader.navTitle = param.tag || '标签';
|
183
|
|
183
|
|
184
|
|
184
|
|