...
|
...
|
@@ -96,7 +96,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 +154,7 @@ const index = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
let param = {
|
|
|
uid: req.user.uid,
|
|
|
uid: req.user.uid || req.query.uid,
|
|
|
|
|
|
udid: req.user.udid,
|
|
|
|
...
|
...
|
@@ -192,7 +192,7 @@ 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
|
|
|
|
...
|
...
|
@@ -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) => {
|
...
|
...
|
|