Authored by 沈志敏

删除默认uid

... ... @@ -23,7 +23,7 @@ const fav = {
}
},
favpaging: (req, res, next) => {
const uid = req.user.uid || 14459668;
const uid = req.user.uid;
const tab = req.query.tab;
const page = req.query.page;
... ... @@ -40,7 +40,7 @@ const fav = {
}
},
deletefav: (req, res, next) => {
const uid = req.user.uid || 14459668;
const uid = req.user.uid;
const favId = req.body.favId;
const type = req.body.type;
... ...
... ... @@ -13,7 +13,7 @@ const helpers = global.yoho.helpers;
*/
const component = {
index: (req, res, next) => {
const uid = req.user.uid || 14459668;
const uid = req.user.uid;
if (!uid && req.xhr) {
return res.json({
... ... @@ -38,7 +38,7 @@ const component = {
}).catch(next);
},
mydetails: (req, res, next) => {
const uid = req.user.uid || 14459668;
const uid = req.user.uid;
homeModel.getUserProfileData(uid).then(data => {
data = data || {};
... ... @@ -62,7 +62,7 @@ const component = {
},
saveMydetails: (req, res, next) => {
var params = {
uid: req.user.uid || 14459668
uid: req.user.uid
};
if (req.body.nickname !== undefined) {
... ... @@ -121,7 +121,6 @@ const component = {
},
saveFeedback: (req, res, next) => {
let saveFeedbackPara = {
uid: '14459668',
content: req.body.content,
suggest_type: 2
};
... ...