|
@@ -375,20 +375,18 @@ $(document).ready(function () {
|
|
|
liffId: "1656404434-gJ0Nzy1Y"
|
|
|
})
|
|
|
.then(() => {
|
|
|
- // var context = liff.getContext();
|
|
|
- // console.log(context);
|
|
|
+ var context = liff.getContext();
|
|
|
+ console.log(context);
|
|
|
|
|
|
- var profile = liff.getProfile();
|
|
|
- console.log(profile);
|
|
|
-
|
|
|
- // liff.login({ redirectUri: "https://ark.cards/collect.html?"+context.contextId }); // test
|
|
|
+ // 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
|
|
|
- // 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
|
|
|
} else {
|
|
|
console.log("您已登入");
|
|
|
}
|