Authored by 郭成尧

order-address-udid

@@ -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);
@@ -374,7 +374,8 @@ const changeAddress = (params) => { @@ -374,7 +374,8 @@ const changeAddress = (params) => {
374 user_name: params.username, 374 user_name: params.username,
375 area_code: params.areaCode, 375 area_code: params.areaCode,
376 address: params.address, 376 address: params.address,
377 - mobile: params.mobile 377 + mobile: params.mobile,
  378 + udid: params.udid
378 }; 379 };
379 380
380 if (params.addressId) { 381 if (params.addressId) {