Authored by zhangxiaoru

增加支付为0

... ... @@ -88,7 +88,7 @@ const payAli = (req, res, next) => {
}).catch(next);
};
//零度支付
// 零度支付
const payZero = (req, res, next) => {
let headerData = headerModel.setNav({
navTitle: '支付完成'
... ... @@ -108,6 +108,12 @@ const payZero = (req, res, next) => {
contentCode: '78d0fb6c97d691863286edcb4d8abfa9'
};
// 如果没有uid,跳转到首页
if (!param.uid) {
res.redirect('/');
return;
}
payModel.getPayZero(param).then(result => {
if (result.match === true) {
res.render('pay/pay-ali', Object.assign(responseData, result));
... ... @@ -118,7 +124,6 @@ const payZero = (req, res, next) => {
}).catch(next);
};
module.exports = {
payCod,
payAli,
... ...
... ... @@ -169,7 +169,7 @@ const getPayAli = (param) => {
});
};
//零度支付
// 零度支付
const getPayZero = (param) => {
return api.all([
_getBanner(param),
... ...