...
|
...
|
@@ -100,16 +100,16 @@ exports.orderEnsure = (req, res, next) => { |
|
|
}
|
|
|
}
|
|
|
|
|
|
if (order.cartUrl) {
|
|
|
logger.info(`orderEnsure: order cartUrl has value:${order.cartUrl}, order data is null`);
|
|
|
return res.redirect(order.cartUrl);
|
|
|
}
|
|
|
|
|
|
if (req.xhr) {
|
|
|
logger.info(`orderEnsure: ajax request, return json:${JSON.stringify(order)}`);
|
|
|
return res.json(order);
|
|
|
}
|
|
|
|
|
|
if (order.cartUrl) {
|
|
|
logger.info(`orderEnsure: order cartUrl has value:${order.cartUrl}, order data is null`);
|
|
|
return res.redirect(order.cartUrl);
|
|
|
}
|
|
|
|
|
|
// 获取用户完整手机号
|
|
|
let mobile = _.get(userProfile, 'data.mobile', '');
|
|
|
let orderAddress = _.get(order, 'address', []);
|
...
|
...
|
|