Showing
1 changed file
with
3 additions
and
1 deletions
@@ -24,7 +24,7 @@ exports.orderEnsure = (req, res, next) => { | @@ -24,7 +24,7 @@ exports.orderEnsure = (req, res, next) => { | ||
24 | }); | 24 | }); |
25 | 25 | ||
26 | let uid = req.user.uid; | 26 | let uid = req.user.uid; |
27 | - let returnUrl = helpers.urlFormat('/cart/index/new'); | 27 | + let returnUrl = helpers.urlFormat('/cart/index/index'); |
28 | let cartType = req.query.cartType; | 28 | let cartType = req.query.cartType; |
29 | let orderInfo; | 29 | let orderInfo; |
30 | 30 | ||
@@ -47,6 +47,8 @@ exports.orderEnsure = (req, res, next) => { | @@ -47,6 +47,8 @@ exports.orderEnsure = (req, res, next) => { | ||
47 | 47 | ||
48 | if (limitProductCode) { | 48 | if (limitProductCode) { |
49 | headerData.backUrl = req.get('Referer') || returnUrl; | 49 | headerData.backUrl = req.get('Referer') || returnUrl; |
50 | + } else { | ||
51 | + headerData.backUrl = returnUrl; | ||
50 | } | 52 | } |
51 | 53 | ||
52 | let orderPromise = cartModel.cartPay(uid, cartType, orderInfo, sku, skn, buyNumber); | 54 | let orderPromise = cartModel.cartPay(uid, cartType, orderInfo, sku, skn, buyNumber); |
-
Please register or login to post a comment