Authored by 郝肖肖

测试环境不须要支付开关

... ... @@ -39,7 +39,7 @@ const payCenter = (req, res, next) => {
}
// 如果支付开关关闭,走老版本的支付
if (_.get(req.app.locals.wap, 'pay.newPay', false) === false) {
if (!req.app.locals.devEnv && _.get(req.app.locals.wap, 'pay.newPay', false) === false) {
return res.redirect(302, helpers.urlFormat('/home/orders/pay', {order_code: orderCode}));
}
... ...