|
@@ -379,24 +379,25 @@ $(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);
|
|
|
+ // var profile = liff.getProfile();
|
|
|
+ // console.log(profile);
|
|
|
|
|
|
- // login
|
|
|
- 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
|
|
|
- } else {
|
|
|
- console.log("您已登入");
|
|
|
- }
|
|
|
+ // // login
|
|
|
+ // 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
|
|
|
+ // } else {
|
|
|
+ // console.log("您已登入");
|
|
|
+ // }
|
|
|
|
|
|
- // 收藏頁面
|
|
|
- collection(context.userId);
|
|
|
+ // // 收藏頁面
|
|
|
+ // collection(context.userId);
|
|
|
+ collection('0x2fcdf2dff554dbb4a4c08713b9f228813d65e637');
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log('初始化失敗: ' + err.code + ", " + err.message);
|