|
@@ -188,6 +188,7 @@ const addressModify = (req, res, next) => { |
|
@@ -188,6 +188,7 @@ const addressModify = (req, res, next) => { |
188
|
*/
|
188
|
*/
|
189
|
const changeAddress = (req, res, next) => {
|
189
|
const changeAddress = (req, res, next) => {
|
190
|
let uid = req.user.uid;
|
190
|
let uid = req.user.uid;
|
|
|
191
|
+ let udid = req.cookies._yasvd || '';
|
191
|
|
192
|
|
192
|
if (!uid) {
|
193
|
if (!uid) {
|
193
|
return res.json({
|
194
|
return res.json({
|
|
@@ -202,7 +203,8 @@ const changeAddress = (req, res, next) => { |
|
@@ -202,7 +203,8 @@ const changeAddress = (req, res, next) => { |
202
|
username: req.body.username,
|
203
|
username: req.body.username,
|
203
|
areaCode: req.body.area_code,
|
204
|
areaCode: req.body.area_code,
|
204
|
address: req.body.address,
|
205
|
address: req.body.address,
|
205
|
- mobile: req.body.mobile
|
206
|
+ mobile: req.body.mobile,
|
|
|
207
|
+ udid: udid
|
206
|
}).then(result => {
|
208
|
}).then(result => {
|
207
|
res.json(result);
|
209
|
res.json(result);
|
208
|
}).catch(next);
|
210
|
}).catch(next);
|