main
Wayne Hsu 3 years ago
parent e506c86964
commit 0efbe72b3d

@ -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

@ -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) {

@ -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',
}
Loading…
Cancel
Save