...
|
...
|
@@ -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
|
|
|
};
|
...
|
...
|
|