فهرست منبع

QRcode Scanner (LIFF)

Mike 3 سال پیش
والد
کامیت
03e80d45c1
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      ArkCard-web/collect.html

+ 6 - 4
ArkCard-web/collect.html

@@ -396,6 +396,7 @@ $(document).ready(function () {
     });
 
     $(".qrcode").click(function () {
+        /*
         liff.scanCode().then(result => {
             // e.g. result = { value: "Hello LIFF app!" }
             alert(JSON.stringify(result)); // test
@@ -404,16 +405,17 @@ $(document).ready(function () {
             alert(JSON.stringify(err)); // test
             console.log(JSON.stringify(err));
         });
-        /*
+        */
+        
         // scanCodeV2 call
         liff.scanCodeV2().then(result => {
             // e.g. result = { value: "Hello LIFF app!" }
+            alert(JSON.stringify(result)); // test
             $('#address').val(result.value);
         }).catch(err => {
-            alert(err); // test
-            console.log(err);
+            alert(JSON.stringify(err)); // test
+            console.log(JSON.stringify(err));
         });
-        */
     });
 });
 </script>