...
|
...
|
@@ -11,7 +11,7 @@ const QRcodeModel = require('../models/qrcode'); |
|
|
exports.QRcode = (req, res, next) => {
|
|
|
let id = req.params.id || 0;
|
|
|
|
|
|
QRcodeModel.getQRcodeData(id, req.user.uid).then((result)=>{
|
|
|
req.ctx(QRcodeModel).getQRcodeData(id, req.user.uid).then((result)=>{
|
|
|
if (result) {
|
|
|
result.ticks = result.ticks.map(item=>{
|
|
|
if (+item.ticket_type === 2) {
|
...
|
...
|
|