Authored by zzzzzzz

二维码名字加密%符号

@@ -10,7 +10,7 @@ exports.index = (req, res, next) => { @@ -10,7 +10,7 @@ exports.index = (req, res, next) => {
10 token: params.token, 10 token: params.token,
11 }).then(result => { 11 }).then(result => {
12 params.token = result; 12 params.token = result;
13 - params.uname = decodeURIComponent(params.uname); 13 + params.uname = decodeURIComponent(params.uname.replace(/\%/g, escape('%')));
14 params.icon = params.icon || 'https://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/2/w/{width}/h/{height}'; 14 params.icon = params.icon || 'https://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/2/w/{width}/h/{height}';
15 res.render('myqrcode', { 15 res.render('myqrcode', {
16 title: '查看二维码', 16 title: '查看二维码',