...
|
...
|
@@ -47,6 +47,7 @@ const editor = (req, res, next) => { |
|
|
|
|
|
if (articleListData.data && articleListData.data.list && articleListData.data.list.artList) {
|
|
|
articleListData.data.list.artList.forEach(articleData => {
|
|
|
articleData.reqPath = `${req.path}?id=${id}`;
|
|
|
build.push(guangProcess.formatArticle(articleData, true, isApp, false, uid));
|
|
|
});
|
|
|
res.render('index/list', Object.assign({
|
...
|
...
|
@@ -96,7 +97,7 @@ const pageData = (req, res, next) => { |
|
|
isTab = req.query.isTab || false,
|
|
|
showAuthor = false;
|
|
|
|
|
|
let uid = req.user.uid,
|
|
|
let uid = req.user.uid || req.query.uid,
|
|
|
udid = req.sessionID;
|
|
|
|
|
|
if (!stringProcess.isNumeric(sortId)) {
|
...
|
...
|
@@ -154,7 +155,7 @@ const index = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
let param = {
|
|
|
uid: req.user.uid,
|
|
|
uid: req.user.uid || req.query.uid,
|
|
|
|
|
|
udid: req.user.udid,
|
|
|
|
...
|
...
|
@@ -192,13 +193,12 @@ const tag = (req, res, next) => { |
|
|
tag: req.query.query,
|
|
|
isApp: req.query.app_version || req.query.appVersion || false,
|
|
|
gender: req.query.gender || '1,3',
|
|
|
uid: req.user.uid || 0,
|
|
|
uid: req.user.uid || req.query.uid || 0,
|
|
|
udid: req.sessionID,
|
|
|
type: req.query.type || 0
|
|
|
|
|
|
type: req.query.type || 0,
|
|
|
path: req.path
|
|
|
};
|
|
|
|
|
|
|
|
|
responseData.pageHeader.navTitle = param.tag || '标签';
|
|
|
|
|
|
|
...
|
...
|
@@ -223,7 +223,7 @@ const listDynamicData = (req, res) => { |
|
|
type = req.query.type;
|
|
|
|
|
|
if (req.user.uid) {
|
|
|
other.uid = req.user.uid;
|
|
|
other.uid = req.user.uid || req.query.uid;
|
|
|
}
|
|
|
|
|
|
if (query) {
|
...
|
...
|
@@ -247,7 +247,7 @@ const listDynamicData = (req, res) => { |
|
|
const detailDynamicData = (req, res) => {
|
|
|
|
|
|
let id = req.query.id,
|
|
|
uid = req.user.uid,
|
|
|
uid = req.user.uid || req.query.uid,
|
|
|
udid = req.sessionID;
|
|
|
|
|
|
indexModel.getDynamicDataById(id, uid, udid).then((ret) => {
|
...
|
...
|
|