Mike 3 vuotta sitten
vanhempi
commit
9921faaab3

+ 2 - 2
ArkCard-web/collect.html

@@ -385,8 +385,8 @@ $(document).ready(function () {
         if (!liff.isLoggedIn()) {
             console.log("您未登入");
             console.log('context.userId = ' + context.userId); // test
-            //liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.userId });  // test
-            liff.login({ redirectUri: "https://liff.line.me/1656404434-gJ0Nzy1Y?"+context.userId });  // test
+            liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.userId });  // test
+            //liff.login({ redirectUri: "https://liff.line.me/1656404434-gJ0Nzy1Y?"+context.userId });  // test
         } else {
             console.log("您已登入");
         }

+ 2 - 2
ArkCard-web/qr-code.html

@@ -85,8 +85,8 @@ $(document).ready(function () {
         if (!liff.isLoggedIn()) {
             console.log("您未登入");
             console.log('context.userId = ' + context.userId); // test
-            //liff.login({ redirectUri: "https://ark.cards/qr-code.html?"+context.userId });  // test
-            liff.login({ redirectUri: "https://liff.line.me/1656404434-Bg83Zm0j?"+context.userId });  // test
+            liff.login({ redirectUri: "https://ark.cards/qr-code.html?"+context.userId });  // test
+            //liff.login({ redirectUri: "https://liff.line.me/1656404434-Bg83Zm0j?"+context.userId });  // test
         } else {
             console.log("您已登入");
         }

+ 8 - 8
ArkCard-web/qrcode_scanner_liff.html

@@ -37,15 +37,15 @@ $(document).ready(function() {
     // login
     if (!liff.isLoggedIn()) {
         liff.login();
-    }
 
-    // scanCodeV2 call
-    liff.scanCodeV2().then(result => {
-        // e.g. result = { value: "Hello LIFF app!" }
-        alert('scanCodeV2()'); // test
-    }).catch(err => {
-        console.log(err);
-    });
+        // scanCodeV2 call
+        liff.scanCodeV2().then(result => {
+            // e.g. result = { value: "Hello LIFF app!" }
+            alert('scanCodeV2()'); // test
+        }).catch(err => {
+            console.log(err);
+        });
+    }
 });
 </script>
 </html>

+ 2 - 2
ArkCard-web/shop.html

@@ -389,8 +389,8 @@ $(document).ready(function () {
         if (!liff.isLoggedIn()) {
             console.log("您未登入");
             console.log('context.userId = ' + context.userId); // test
-            //liff.login({ redirectUri: "https://ark.cards/qr-code.html?"+context.userId });  // test
-            liff.login({ redirectUri: "https://liff.line.me/1656404434-qeEpXmzx?"+context.userId });  // test
+            liff.login({ redirectUri: "https://ark.cards/qr-code.html?"+context.userId });  // test
+            // liff.login({ redirectUri: "https://liff.line.me/1656404434-qeEpXmzx?"+context.userId });  // test
         } else {
             console.log("您已登入");
         }