Authored by 郭成尧

order-address-udid

... ... @@ -188,6 +188,7 @@ const addressModify = (req, res, next) => {
*/
const changeAddress = (req, res, next) => {
let uid = req.user.uid;
let udid = req.cookies._yasvd || '';
if (!uid) {
return res.json({
... ... @@ -202,7 +203,8 @@ const changeAddress = (req, res, next) => {
username: req.body.username,
areaCode: req.body.area_code,
address: req.body.address,
mobile: req.body.mobile
mobile: req.body.mobile,
udid: udid
}).then(result => {
res.json(result);
}).catch(next);
... ...
... ... @@ -374,7 +374,8 @@ const changeAddress = (params) => {
user_name: params.username,
area_code: params.areaCode,
address: params.address,
mobile: params.mobile
mobile: params.mobile,
udid: params.udid
};
if (params.addressId) {
... ...