Showing
2 changed files
with
3 additions
and
5 deletions
@@ -222,7 +222,6 @@ exports.chooseAddress = (req, res, next) => { | @@ -222,7 +222,6 @@ exports.chooseAddress = (req, res, next) => { | ||
222 | let uid = req.user.uid; | 222 | let uid = req.user.uid; |
223 | let orderCode = req.query.orderCode; | 223 | let orderCode = req.query.orderCode; |
224 | let addressId = decodeURIComponent(req.query.addressId); | 224 | let addressId = decodeURIComponent(req.query.addressId); |
225 | - let udid = req.cookies._yasvd || 'yoho'; | ||
226 | 225 | ||
227 | if (!addressId || !orderCode) { | 226 | if (!addressId || !orderCode) { |
228 | return res.json({ | 227 | return res.json({ |
@@ -232,7 +231,7 @@ exports.chooseAddress = (req, res, next) => { | @@ -232,7 +231,7 @@ exports.chooseAddress = (req, res, next) => { | ||
232 | }); | 231 | }); |
233 | } | 232 | } |
234 | 233 | ||
235 | - addressModel.chooseAddress(orderCode, addressId, uid, udid).then(result => { | 234 | + addressModel.chooseAddress(orderCode, addressId, uid).then(result => { |
236 | res.json(result); | 235 | res.json(result); |
237 | }).catch(next); | 236 | }).catch(next); |
238 | }; | 237 | }; |
@@ -201,13 +201,12 @@ const newGetAddress = (params) => { | @@ -201,13 +201,12 @@ const newGetAddress = (params) => { | ||
201 | * 订单详情选择地址 | 201 | * 订单详情选择地址 |
202 | * @param params | 202 | * @param params |
203 | */ | 203 | */ |
204 | -const chooseAddress = (orderCode, addressId, uid, udid) => { | 204 | +const chooseAddress = (orderCode, addressId, uid) => { |
205 | return api.get('', { | 205 | return api.get('', { |
206 | method: 'app.SpaceOrders.updateDeliveryAddress', | 206 | method: 'app.SpaceOrders.updateDeliveryAddress', |
207 | uid: uid, | 207 | uid: uid, |
208 | order_code: orderCode, | 208 | order_code: orderCode, |
209 | - address_id: crypto.decrypt(null, addressId), | ||
210 | - udid: udid | 209 | + address_id: crypto.decrypt(null, addressId) |
211 | }).then((result) => { | 210 | }).then((result) => { |
212 | return result; | 211 | return result; |
213 | }); | 212 | }); |
-
Please register or login to post a comment