feat: 新增拼团
This commit is contained in:
+5
-1
@@ -42,10 +42,12 @@ export function filterDouyinPayWays(ways) {
|
||||
return (ways || []).filter(item => item.type !== 'douyin');
|
||||
// #endif
|
||||
}
|
||||
let pendingSuccessUrl = '';
|
||||
|
||||
async function showState(state, key, orderNum) {
|
||||
if (key !== accountKey()) return;
|
||||
if (state.state === 'paid') {
|
||||
const navigated = await jumpToPaymentSuccess();
|
||||
const navigated = await jumpToPaymentSuccess(pendingSuccessUrl);
|
||||
if (key !== accountKey()) return;
|
||||
if (!navigated) {
|
||||
// Retain the record so the next onShow/click can retry navigation without paying again.
|
||||
@@ -53,6 +55,7 @@ async function showState(state, key, orderNum) {
|
||||
return;
|
||||
}
|
||||
failureShown.delete(key);
|
||||
pendingSuccessUrl = '';
|
||||
} else {
|
||||
// Same failure page as WeChat/Alipay. Ending the UI attempt is not a channel close.
|
||||
// Keep unresolved orders for reconciliation, but do not push the page on every onShow.
|
||||
@@ -178,6 +181,7 @@ export async function appDypayFun(payment) {
|
||||
// #ifdef APP-PLUS
|
||||
if (active || resuming) return;
|
||||
active = true;
|
||||
pendingSuccessUrl = payment?.customSuccessUrl || '';
|
||||
const key = accountKey();
|
||||
try {
|
||||
if (!key || !payment.orderNum) throw new Error('登录身份或支付订单编号缺失');
|
||||
|
||||
Reference in New Issue
Block a user