...
|
...
|
@@ -269,6 +269,14 @@ const payZero = (req, res, next) => { |
|
|
title: '支付中心 | Yoho!Buy有货 | 潮流购物逛不停'
|
|
|
};
|
|
|
|
|
|
let responseFailure = {
|
|
|
pageHeader: headerModel.setNav({
|
|
|
navTitle: '支付中心',
|
|
|
navBtn: false
|
|
|
}),
|
|
|
title: '支付中心 | Yoho!Buy有货 | 潮流购物逛不停'
|
|
|
};
|
|
|
|
|
|
let param = {
|
|
|
uid: req.user.uid,
|
|
|
udid: req.sessionID || require('md5')(req.ip) || 'yoho',
|
...
|
...
|
@@ -284,8 +292,13 @@ const payZero = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
payModel.getPayAli(param).then(result => {
|
|
|
|
|
|
if (result.match === true) {
|
|
|
if (result.isCancel && result.isCancel === true) {
|
|
|
return res.render('pay/pay-failure', responseFailure);
|
|
|
} else {
|
|
|
res.render('pay/pay-ali', Object.assign(responseData, result));
|
|
|
}
|
|
|
} else {
|
|
|
res.redirect('/');
|
|
|
}
|
...
|
...
|
|