Mike 3 роки тому
батько
коміт
c953afd65d
1 змінених файлів з 7 додано та 3 видалено
  1. 7 3
      ArkCard-web/collect.html

+ 7 - 3
ArkCard-web/collect.html

@@ -374,10 +374,13 @@ liff.init({
     liffId: "1656494344-JovNdOv0"
 })
 .then(() => {
-    const context = liff.getContext();
-    console.log(context.contextId);
+    var context = liff.getContext();
+    console.log(context);
 
-    liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.contextId });  // test   
+    var profile = liff.getProfile();
+    console.log(profile);
+
+    // liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.contextId });  // test   
 
     /*
     // login
@@ -409,6 +412,7 @@ $(".qrcode").click(function () {
         // e.g. result = { value: "Hello LIFF app!" }
         alert(result.value); // test
     }).catch(err => {
+        alert(err); // test
         console.log(err);
     });
 });