Authored by 郭成尧

address-no

... ... @@ -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);
};
... ...
... ... @@ -201,13 +201,12 @@ const newGetAddress = (params) => {
* 订单详情选择地址
* @param params
*/
const chooseAddress = (orderCode, addressId, uid, udid) => {
const chooseAddress = (orderCode, addressId, uid) => {
return api.get('', {
method: 'app.SpaceOrders.updateDeliveryAddress',
uid: uid,
order_code: orderCode,
address_id: crypto.decrypt(null, addressId),
udid: udid
address_id: crypto.decrypt(null, addressId)
}).then((result) => {
return result;
});
... ...