myqrcode.js
454 Bytes
'use strict';
const model = require('../models/myqrcode');
exports.index = (req, res, next) => {
let params = req.query;
model.getQr({
token: params.token,
}).then(result => {
params.token = result;
res.render('myqrcode', {
title: '查看二维码',
module: 'home',
page: 'myqrcode',
isPassportPage: true,
data: params,
});
}).catch(next);
};