wudebin hace 1 mes
padre
commit
1a66920ed9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Strides-SPAPP/app/pages/charge/QRScan.js

+ 2 - 2
Strides-SPAPP/app/pages/charge/QRScan.js

@@ -85,7 +85,7 @@ export default class QRScan extends Component {
     }, () => {
       setTimeout(() => {
         this.scaning = false;
-      }, 300);
+      }, 500);
       const msg = codes[0]
       this.getQrMessage(msg);
     });
@@ -106,7 +106,7 @@ export default class QRScan extends Component {
         this.getChargeDetail(qr);
         return;
       }
-    } else {
+    } else if (msg.value.indexOf("http") == 0) {
       const qr = {
         qrContent: msg
       }