bugfix
All checks were successful
site-dist-deploy / build-and-deploy (push) Successful in 1m10s

This commit is contained in:
speakeloudest 2026-01-06 19:52:48 -08:00
parent fa29905c7c
commit e3cca4c51c
5 changed files with 41 additions and 28 deletions

View File

@ -12,9 +12,7 @@
<meta property="og:title" content="HiFast VPN - 极速连接全球" />
<meta property="og:description" content="专业加密协议,保护隐私,解除地理限制。立即下载各平台客户端。" />
<!-- <meta property="og:image" content="https://h.hifastapp.com/og-image.png" />-->
<meta property="og:url" content="https://h.hifastapp.com/" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta property="og:url" content="https://hifastvpn.com/" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="HiFast VPN" />
<!-- <link rel="apple-touch-icon" href="/icon-192x192.png" />-->

View File

@ -54,43 +54,50 @@ const countdown = ref('')
let timer: any = null
let countdownTimer: any = null
let createdAt: Date | null = null
/*
* static const int kr_statusPending = 1; //
static const int kr_statusPaid = 2; //
static const int kr_statusClose = 3; //
static const int kr_statusFailed = 4; //
static const int kr_statusFinished = 5; //
*
* */
const statusInfo = computed(() => {
switch (status.value) {
case -1:
return {
title: '检查失败',
description: '检查支付状态失败,请稍后刷新页面或联系客服',
description: '获取支付状态失败,请稍后刷新页面',
}
case 1:
case 1: // kr_statusPending
return {
title: '待支付',
description: `订单正在处理中\n剩余时间: ${countdown.value}`,
}
case 2:
case 2: // kr_statusPaid
return {
title: '支付确认中',
description: '订单已支付,系统正在确认,请稍候...',
}
case 3:
return {
title: '支付成功',
description: '您的订单已支付完成',
}
case 4:
case 3: // kr_statusClose
return {
title: '订单已关闭',
description: '该订单已超时或被手动关闭',
}
case 5:
case 4: // kr_statusFailed
return {
title: '支付失败',
description: '订单支付失败,请检查支付信息并重试',
}
case 5: // kr_statusFinished
return {
title: '支付成功',
description: '您的订单已支付完成,感谢您的支持',
}
default:
return {
title: '待支付',
description: `订单正在处理中\n剩余时间: ${countdown.value}`,
title: '订单处理中',
description: '请稍候...',
}
}
})
@ -116,15 +123,16 @@ async function checkStatus() {
status.value = res.status
// 2.
if (status.value === 3) {
// Finished
stopPolling()
emit('refresh')
} else if (status.value === 4 || status.value === 5) {
// Closed or Failed
// --- ---
if (status.value === 5) {
// 5: (kr_statusFinished)
stopPolling()
emit('refresh') //
} else if (status.value === 3 || status.value === 4) {
// 3: (kr_statusClose), 4: (kr_statusFailed)
stopPolling() //
}
// 1 2
} catch (error) {
console.error('❌ 查询失败:', error)
status.value = -1

View File

@ -100,8 +100,8 @@
</div>
<div class="text-center text-[10px] leading-[14px] font-[300] md:ml-[17px] md:text-left">
<span class="font-[600]">Hi快VPN</span> &copy; All rights reserved.<br />
<router-link to="/terms-of-service" class="underline">Terms of Service</router-link>
<router-link to="/privacy-policy" class="ml-2 underline">Privacy Policy</router-link>
<router-link to="/terms" class="underline">Terms of Service</router-link>
<router-link to="/privacy" class="ml-2 underline">Privacy Policy</router-link>
</div>
</div>

View File

@ -230,7 +230,10 @@ async function init() {
.get('/api/v1/public/payment/methods')
.then((res: any) => {
payments.value =
res.list?.filter((p: any) => p.platform !== 'apple_iap' && p.platform !== 'Stripe') || []
res.list?.filter(
(p: any) =>
p.platform !== 'apple_iap' && p.platform !== 'Stripe' && p.platform !== 'balance',
) || []
})
.finally(() => {
isPaymentsLoading.value = false
@ -241,7 +244,11 @@ onMounted(() => {
init()
const orderNo = (route.query.order_no as string) || localStorage.getItem('pending_order_no')
if (orderNo) {
orderStatusDialogRef.value?.show(orderNo)
request.get('/api/v1/public/order/detail', { order_no: orderNo }).then((data) => {
if (data.status === 1 || data.status === 5 || data.status === 2) {
orderStatusDialogRef.value?.show(orderNo)
}
})
}
})

View File

@ -1,6 +1,6 @@
import Request from './core'
export * from './core'
const baseUrl = import.meta.env.VITE_APP_BASE_URL || '/'
const baseUrl = import.meta.env.VITE_APP_BASE_URL
const request = new Request({
baseURL: baseUrl,