|
@@ -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);
|
|
|
});
|
|
|
});
|