refund.js
412 Bytes
/**
* 退换货
* @type {Object}
*/
const refundModel = require('../models/refund');
const refund = {
refund(req, res) {
res.render('refund');
},
order(req, res, next) {
const uid = 8050560;
const orderId = 160192757;
refundModel.getOrderData(uid, orderId).then(result => {
res.json(result);
}).catch(next);
}
};
module.exports = refund;