...
|
...
|
@@ -222,7 +222,6 @@ exports.chooseAddress = (req, res, next) => { |
|
|
let uid = req.user.uid;
|
|
|
let orderCode = req.query.orderCode;
|
|
|
let addressId = decodeURIComponent(req.query.addressId);
|
|
|
let udid = req.cookies._yasvd || 'yoho';
|
|
|
|
|
|
if (!addressId || !orderCode) {
|
|
|
return res.json({
|
...
|
...
|
@@ -232,7 +231,7 @@ exports.chooseAddress = (req, res, next) => { |
|
|
});
|
|
|
}
|
|
|
|
|
|
addressModel.chooseAddress(orderCode, addressId, uid, udid).then(result => {
|
|
|
addressModel.chooseAddress(orderCode, addressId, uid).then(result => {
|
|
|
res.json(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|