diff --git a/package.json b/package.json index c95b7d2..3cc8e97 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,11 @@ "scripts": { "dev": "vite", "build": "vite build", + "build:hot": "vite build", "build:sta": "vite build --mode stage", "preview": "vite preview", - "postbuild:sta" : "scp -r ./dist/* root@207.148.89.145:/www/wwwroot/utel.zltest.com.tw/public/home" + "postbuild:sta" : "scp -r ./dist/* root@207.148.89.145:/www/wwwroot/utel.zltest.com.tw/public/home", + "postbuild:hot" : "scp -r ./dist/* root@167.179.106.36:/www/wwwroot/pro.utel.vip/app/public/home" }, "dependencies": { "@line/liff": "^2.22.4", diff --git a/src/utils/card/card0.js b/src/utils/card/card0.js index b253175..947ecd4 100644 --- a/src/utils/card/card0.js +++ b/src/utils/card/card0.js @@ -349,7 +349,7 @@ function genCard(vcard) { "action": { "type": "uri", "label": "action", - "uri": "${import.meta.env.VITE_APP_BASE_URL}/home/address?act=add&cardid=${vcard.user_id}" + "uri": "https://liff.line.me/${import.meta.env.VITE_APP_LINE_LIFF_ID}/home/address?act=add&cardid=${vcard.user_id}" } } ], diff --git a/src/utils/card/card1.js b/src/utils/card/card1.js index 90f9e0c..b8d58b3 100644 --- a/src/utils/card/card1.js +++ b/src/utils/card/card1.js @@ -315,7 +315,7 @@ function genCard(vcard) { "action": { "type": "uri", "label": "收藏名片", - "uri": "${import.meta.env.VITE_APP_BASE_URL}/home/address?act=add&cardid=${vcard.user_id}" + "uri": "https://liff.line.me/${import.meta.env.VITE_APP_LINE_LIFF_ID}/home/address?act=add&cardid=${vcard.user_id}" }, "color": "#c73f6d", "height": "sm", diff --git a/src/utils/card/card2.js b/src/utils/card/card2.js index b49975d..9a9ffbb 100644 --- a/src/utils/card/card2.js +++ b/src/utils/card/card2.js @@ -305,7 +305,7 @@ function genCard(vcard) { "action": { "type": "uri", "label": "收藏名片", - "uri": "${import.meta.env.VITE_APP_BASE_URL}/home/address?act=add&cardid=${vcard.user_id}" + "uri": "https://liff.line.me/${import.meta.env.VITE_APP_LINE_LIFF_ID}/home/address?act=add&cardid=${vcard.user_id}" }, "color": "#464757", "height": "sm", diff --git a/src/utils/card/card3.js b/src/utils/card/card3.js index aca150b..c92f8e6 100644 --- a/src/utils/card/card3.js +++ b/src/utils/card/card3.js @@ -234,7 +234,7 @@ function genCard(vcard) { "action": { "type": "uri", "label": "action", - "uri": "${import.meta.env.VITE_APP_BASE_URL}/home/address?act=add&cardid=${vcard.user_id}" + "uri": "https://liff.line.me/${import.meta.env.VITE_APP_LINE_LIFF_ID}/home/address?act=add&cardid=${vcard.user_id}" } } ]