浏览代码

qrcode scanner

Mike 3 年之前
父节点
当前提交
871ce536a3
共有 1 个文件被更改,包括 4 次插入7 次删除
  1. 4 7
      ArkCard-web/collect.html

+ 4 - 7
ArkCard-web/collect.html

@@ -378,21 +378,18 @@ $(document).ready(function () {
         var context = liff.getContext();
         console.log(context);
 
-        /*
         var profile = liff.getProfile();
         console.log(profile);
 
         // login
         if (!liff.isLoggedIn()) {
             console.log("您未登入");
+            // liff.login({ redirectUri: "https://liff.line.me/1656404434-gJ0Nzy1Y?"+context.userId });  // test
+            console.log('context.userId = ' + context.userId); // test
+            liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.userId });  // test
         } else {
             console.log("您已登入");
-        }
-        */
-        
-        // liff.login({ redirectUri: "https://liff.line.me/1656404434-gJ0Nzy1Y?"+context.userId });  // test
-        console.log('context.userId = ' + context.userId); // test
-        liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.userId });  // test
+        }       
     })
     .catch((err) => {
         console.log('初始化失敗: ' + err.code + ", " + err.message);