From 0efbe72b3d44d88b17b46b0ec9f16ccc745bfaa8 Mon Sep 17 00:00:00 2001 From: Wayne Hsu Date: Tue, 16 May 2023 05:25:18 +0800 Subject: [PATCH] v1.0.0 --- .env.slash | 10 +++++----- src/views/Send/Index.vue | 22 ++++++++-------------- vue.config.js | 2 +- 3 files changed, 14 insertions(+), 20 deletions(-) diff --git a/.env.slash b/.env.slash index 4c5d78f..213c912 100644 --- a/.env.slash +++ b/.env.slash @@ -1,13 +1,13 @@ NODE_ENV = production -VUE_ENV = production +VUE_ENV = stage -VUE_APP_LINE_LIFF_ID = 1657876696-564NGMxy +VUE_APP_LINE_LIFF_ID = 1661025693-veEM0lwZ -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.h888.fun/appapi/v1 +VUE_APP_API_URL = https://card.slash1000.com/appapi/v1 -VUE_APP_IMAGE_URL = https://card.h888.fun/storage +VUE_APP_IMAGE_URL = https://card.slash1000.com/storage VUE_APP_MC_URL = https://liff.line.me/1657876696-MKYDJKgm \ No newline at end of file diff --git a/src/views/Send/Index.vue b/src/views/Send/Index.vue index a6c880f..b3bbc35 100644 --- a/src/views/Send/Index.vue +++ b/src/views/Send/Index.vue @@ -71,25 +71,19 @@ onBeforeMount(async () => { //取得會員資料 const card1Res = await getCard(params) + console.log(card1Res) if (card1Res.code !== 200) { - Toast('非法操作!!!') + Toast('操作錯誤!!!') console.log('error ec001') window.location.replace('https://liff.line.me/1656948609-xMp7dWAz') } state.value.user = card1Res.data - if (card1Res.data.nc_type <= 1 && cid !== 0) { - Toast('非法操作!!!') - console.log('error ec002') - return - } - - if (card1Res.data.nc_type === 2 && cid > 1) { - Toast('非法操作!!!') - console.log('error ec003') - return - } - + // if (card1Res.data.level <= 1 && cid !== 0) { + // Toast('操作錯誤!!!') + // console.log('error ec002') + // return + // } if (card1Res.data.nc_type > 2) { let vipCardRes = await getVipCard({ userid: state.value.user.user_id }) @@ -123,7 +117,7 @@ async function showFlex(id) { // flex2html("flex", JSON.parse(card)) break case 1: - if (state.value.user.nc_type > 1) { + if (state.value.user.level > 0) { let card2Res = await getCusCard({ userid: state.value.user.user_id }) if (card2Res.code === 200) { if (card2Res.data.cus_card) { diff --git a/vue.config.js b/vue.config.js index 71ea2c4..84b3ca8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,7 +3,7 @@ module.exports = { disableHostCheck: true }, publicPath: ["production", "stage", "slash"].includes(process.env.VUE_ENV) ? '/send' : '/send', - outputDir: process.env.VUE_ENV === 'production' ? '../api/public/send' : './dist', + outputDir: ["production", "stage", "slash"].includes(process.env.VUE_ENV) ? '../api/public/send' : './dist', } \ No newline at end of file