feat(payment): expire pending orders after one hour

This commit is contained in:
stefanfeng
2026-10-16 17:24:57 +08:00
parent ddb8ea9802
commit 08a7bc8b90
5 changed files with 111 additions and 14 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ const doCharge = async () => {
const tokenPart = order.checkoutToken
? `&token=${encodeURIComponent(order.checkoutToken)}`
: ''
window.location.assign(`${checkoutBase}#/payOrder?orderNo=${encodeURIComponent(order.providerOrderNo)}&isOrg=true${evnPart}${tokenPart}`)
window.location.assign(`${checkoutBase}#/payOrder?id=${encodeURIComponent(order.providerOrderNo)}&isOrgUrl=true${tokenPart}${evnPart}`)
} catch (error: any) {
paymentNoticeTone.value = 'error'
paymentNotice.value = error?.message || '充值失败,请重试'