Browse Source

Fix double '/'

HonorLee 5 years ago
parent
commit
77a629e2e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      handler/api.js

+ 1 - 1
handler/api.js

@@ -122,7 +122,7 @@ var QRHandler = {
     getQR:function(tagName){
         let qrImgPath = '/'+tagName+'.png';
         if(!FILE.exists(QRPATH+qrImgPath)){
-            let qr = new QR({value:SystemURL+'/'+tagName});
+            let qr = new QR({value:SystemURL+tagName});
             let qrData = qr.toDataURL().replace(/^data:image\/\w+;base64,/, "");
             FILE.writeFileSync(QRPATH+qrImgPath,new Buffer(qrData, 'base64'),'binary');
         }