Authored by 郭成尧

select-address-return

@@ -303,7 +303,8 @@ exports.selectAddress = (req, res, next) => { @@ -303,7 +303,8 @@ exports.selectAddress = (req, res, next) => {
303 303
304 return addressModel.addressData(uid).then(address => { 304 return addressModel.addressData(uid).then(address => {
305 305
306 - let moreUrl = (req.get('Referer') && !/\/home\/addressAct/.test(req.get('Referer'))) ? 306 + let moreUrl = (req.get('Referer') && !/\/home\/addressAct/.test(req.get('Referer')) &&
  307 + !/selectAddress/.test(req.get('Referer'))) ?
307 req.get('Referer') : helpers.urlFormat('/cart/index/new/orderEnsure'); // 取跳过来的url 308 req.get('Referer') : helpers.urlFormat('/cart/index/new/orderEnsure'); // 取跳过来的url
308 309
309 address = address.data; 310 address = address.data;