Authored by 沈志敏

删除默认uid

@@ -23,7 +23,7 @@ const fav = { @@ -23,7 +23,7 @@ const fav = {
23 } 23 }
24 }, 24 },
25 favpaging: (req, res, next) => { 25 favpaging: (req, res, next) => {
26 - const uid = req.user.uid || 14459668; 26 + const uid = req.user.uid;
27 const tab = req.query.tab; 27 const tab = req.query.tab;
28 const page = req.query.page; 28 const page = req.query.page;
29 29
@@ -40,7 +40,7 @@ const fav = { @@ -40,7 +40,7 @@ const fav = {
40 } 40 }
41 }, 41 },
42 deletefav: (req, res, next) => { 42 deletefav: (req, res, next) => {
43 - const uid = req.user.uid || 14459668; 43 + const uid = req.user.uid;
44 const favId = req.body.favId; 44 const favId = req.body.favId;
45 const type = req.body.type; 45 const type = req.body.type;
46 46
@@ -13,7 +13,7 @@ const helpers = global.yoho.helpers; @@ -13,7 +13,7 @@ const helpers = global.yoho.helpers;
13 */ 13 */
14 const component = { 14 const component = {
15 index: (req, res, next) => { 15 index: (req, res, next) => {
16 - const uid = req.user.uid || 14459668; 16 + const uid = req.user.uid;
17 17
18 if (!uid && req.xhr) { 18 if (!uid && req.xhr) {
19 return res.json({ 19 return res.json({
@@ -38,7 +38,7 @@ const component = { @@ -38,7 +38,7 @@ const component = {
38 }).catch(next); 38 }).catch(next);
39 }, 39 },
40 mydetails: (req, res, next) => { 40 mydetails: (req, res, next) => {
41 - const uid = req.user.uid || 14459668; 41 + const uid = req.user.uid;
42 42
43 homeModel.getUserProfileData(uid).then(data => { 43 homeModel.getUserProfileData(uid).then(data => {
44 data = data || {}; 44 data = data || {};
@@ -62,7 +62,7 @@ const component = { @@ -62,7 +62,7 @@ const component = {
62 }, 62 },
63 saveMydetails: (req, res, next) => { 63 saveMydetails: (req, res, next) => {
64 var params = { 64 var params = {
65 - uid: req.user.uid || 14459668 65 + uid: req.user.uid
66 }; 66 };
67 67
68 if (req.body.nickname !== undefined) { 68 if (req.body.nickname !== undefined) {
@@ -121,7 +121,6 @@ const component = { @@ -121,7 +121,6 @@ const component = {
121 }, 121 },
122 saveFeedback: (req, res, next) => { 122 saveFeedback: (req, res, next) => {
123 let saveFeedbackPara = { 123 let saveFeedbackPara = {
124 - uid: '14459668',  
125 content: req.body.content, 124 content: req.body.content,
126 suggest_type: 2 125 suggest_type: 2
127 }; 126 };