Authored by 郭成尧

backUrl

... ... @@ -24,7 +24,7 @@ exports.orderEnsure = (req, res, next) => {
});
let uid = req.user.uid;
let returnUrl = helpers.urlFormat('/cart/index/new');
let returnUrl = helpers.urlFormat('/cart/index/index');
let cartType = req.query.cartType;
let orderInfo;
... ... @@ -47,6 +47,8 @@ exports.orderEnsure = (req, res, next) => {
if (limitProductCode) {
headerData.backUrl = req.get('Referer') || returnUrl;
} else {
headerData.backUrl = returnUrl;
}
let orderPromise = cartModel.cartPay(uid, cartType, orderInfo, sku, skn, buyNumber);
... ...