fix: 对齐抖音支付失败及杀进程恢复跳转

This commit is contained in:
Codex
2026-09-10 09:20:50 +08:00
committed by charles
parent b5b6359d8e
commit f4c67cb20b
7 changed files with 142 additions and 1555 deletions
+8 -1
View File
@@ -1,6 +1,13 @@
// Shared result pages for WeChat, Alipay and Douyin. Keep the existing page design.
export function jumpToPaymentSuccess() {
const url = '/pages/order_package/order_submit_ok/order_submit_ok';
return jumpToPaymentResult('/pages/order_package/order_submit_ok/order_submit_ok');
}
export function jumpToPaymentFailure() {
return jumpToPaymentResult('/pages/order_package/order_submit_error/order_submit_error');
}
function jumpToPaymentResult(url) {
const pages = typeof getCurrentPages === 'function' ? getCurrentPages() : [];
if (pages[pages.length - 1]?.route === url.slice(1)) return Promise.resolve(true);
return new Promise(resolve => {