...
|
...
|
@@ -12,6 +12,7 @@ const mRoot = '../models'; |
|
|
const payModel = require(`${mRoot}/pay`);
|
|
|
const payTool = payModel.payTool;
|
|
|
const headerModel = require('../../../doraemon/models/header'); // 头部model
|
|
|
const aboutModel = require('../../../doraemon/models/about');
|
|
|
const co = require('bluebird').coroutine;
|
|
|
const helpers = global.yoho.helpers;
|
|
|
const Payment = require('../helpers/payment');
|
...
|
...
|
@@ -215,7 +216,9 @@ const payCod = (req, res, next) => { |
|
|
|
|
|
payModel.getPayCod(param).then(result => {
|
|
|
if (result.match === true) {
|
|
|
res.render('pay/pay-cod', Object.assign(responseData, result));
|
|
|
aboutModel.about().then(resu => {
|
|
|
res.render('pay/pay-cod', Object.assign(responseData, result, {wxFooter: resu}));
|
|
|
});
|
|
|
} else {
|
|
|
res.redirect('/');
|
|
|
}
|
...
|
...
|
@@ -266,7 +269,9 @@ const payAli = (req, res, next) => { |
|
|
|
|
|
payModel.getPayAli(param).then(result => {
|
|
|
if (result.match === true) {
|
|
|
res.render('pay/pay-ali', Object.assign(responseData, result));
|
|
|
aboutModel.about().then(resu => {
|
|
|
res.render('pay/pay-ali', Object.assign(responseData, result, {wxFooter: resu}));
|
|
|
});
|
|
|
} else {
|
|
|
res.redirect('/');
|
|
|
}
|
...
|
...
|
|