diff --git a/.env.development b/.env.development index 300a136..fbf9907 100644 --- a/.env.development +++ b/.env.development @@ -16,4 +16,6 @@ VUE_APP_DOMAIN = localhost VUE_APP_LINE_CLINE_ID = 1657876696 +VUE_APP_LINE_CLIENT_SECRET = 914cc067cb11ffbd47640de8f3f4a00a + VUE_APP_LINE_LIFF_ID = 1657876696-MKYDJKgm diff --git a/.env.slash b/.env.slash index 8dd2431..8eebf7a 100644 --- a/.env.slash +++ b/.env.slash @@ -4,7 +4,7 @@ VUE_ENV = slash VUE_APP_BASE_URL = https://card.slash1000.com -VUE_APP_SEND_URL = https://liff.line.me/1657876696-564NGMxy +VUE_APP_SEND_URL = https://liff.line.me/1661025693-veEM0lwZ VUE_APP_API_URL = https://card.slash1000.com/appapi/v1 @@ -14,6 +14,9 @@ VUE_APP_IMAGE_URL = https://card.slash1000.com/storage VUE_APP_DOMAIN = slash1000.com -VUE_APP_LINE_CLINE_ID = 1657876696 +VUE_APP_LINE_CLINE_ID = 1661025693 -VUE_APP_LINE_LIFF_ID = 1657876696-MKYDJKgm +VUE_APP_LINE_CLIENT_SECRET = 914cc067cb11ffbd47640de8f3f4a00a + + +VUE_APP_LINE_LIFF_ID = 1661025693-veEM0lwZ diff --git a/src/views/Login/LineLogin.vue b/src/views/Login/LineLogin.vue index 56eb5b9..6407751 100644 --- a/src/views/Login/LineLogin.vue +++ b/src/views/Login/LineLogin.vue @@ -39,7 +39,7 @@ if (!code) { code: code, redirect_uri: redirect_uri, client_id: client_id, - client_secret: "2a7930d6143a00ff421812b942cde200", + client_secret: process.env.VUE_APP_LINE_CLIENT_SECRET, }), { headers: { diff --git a/src/views/Send/index.vue b/src/views/Send/index.vue index d910330..909708f 100644 --- a/src/views/Send/index.vue +++ b/src/views/Send/index.vue @@ -174,9 +174,9 @@ const sendEcard = async () => { let isMo = isMobile().any // window.location.href = 'https://liff.line.me/1657876696-564NGMxy?userid=sc63e7880cd0b65&cardid=1' if(isMo){ - window.location.href = `https://line.me/R/app/1657876696-564NGMxy?userid=${userInfo.value.user_id}&cardid=${parseInt(activeName.value) + 1}` + window.location.href = `https://line.me/R/app/${process.env.VUE_APP_LINE_LIFF_ID}?userid=${userInfo.value.user_id}&cardid=${parseInt(activeName.value) + 1}` }else{ - window.location.href = `https://liff.line.me/1657876696-564NGMxy?userid=${userInfo.value.user_id}&cardid=${parseInt(activeName.value) + 1}` + window.location.href = `https://liff.line.me/${process.env.VUE_APP_LINE_LIFF_ID}?userid=${userInfo.value.user_id}&cardid=${parseInt(activeName.value) + 1}` } }