From 7547ea9f4e7c76ad8128b730c7b6ec629a719dfa Mon Sep 17 00:00:00 2001 From: erio Date: Fri, 10 Apr 2026 16:23:23 +0800 Subject: [PATCH] fix(payment): include RECHARGING in result page success states The PaymentResultView only checked COMPLETED and PAID status, but orders in RECHARGING state (balance being applied after payment) were incorrectly shown as failed. --- backend/cmd/server/VERSION | 2 +- frontend/src/views/user/PaymentResultView.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/cmd/server/VERSION b/backend/cmd/server/VERSION index 4d125dd8e2..0e73dee820 100644 --- a/backend/cmd/server/VERSION +++ b/backend/cmd/server/VERSION @@ -1 +1 @@ -0.1.108.150 +0.1.108.151 diff --git a/frontend/src/views/user/PaymentResultView.vue b/frontend/src/views/user/PaymentResultView.vue index 3c7df572dd..bc16918c91 100644 --- a/frontend/src/views/user/PaymentResultView.vue +++ b/frontend/src/views/user/PaymentResultView.vue @@ -102,10 +102,12 @@ interface ReturnInfo { } const returnInfo = ref(null) +const SUCCESS_STATUSES = new Set(['COMPLETED', 'PAID', 'RECHARGING']) + const isSuccess = computed(() => { // Always prioritize actual order status from backend if (order.value) { - return order.value.status === 'COMPLETED' || order.value.status === 'PAID' + return SUCCESS_STATUSES.has(order.value.status) } // Fallback only when order not loaded if (route.query.status === 'success') return true