Authored by ccbikai(👎🏻🍜)

错误兼容

@@ -6,7 +6,7 @@ const model = require('../models/myqrcode'), @@ -6,7 +6,7 @@ const model = require('../models/myqrcode'),
6 exports.index = (req, res, next) => { 6 exports.index = (req, res, next) => {
7 let params = req.query, 7 let params = req.query,
8 esc = false, 8 esc = false,
9 - appversion = req.query.app_version; 9 + appversion = req.query.app_version || '';
10 10
11 if (Number(appversion.substr(0, 1) < 5) || (Number(appversion.substr(0, 1)) === 5 && Number(appversion.substr(2, 1)) < 2)) { 11 if (Number(appversion.substr(0, 1) < 5) || (Number(appversion.substr(0, 1)) === 5 && Number(appversion.substr(2, 1)) < 2)) {
12 esc = true; 12 esc = true;