fixbug:ios抖音支付回跳

This commit is contained in:
2026-09-11 10:46:22 +08:00
parent b2242ba20b
commit 355ad119af
3 changed files with 15 additions and 8 deletions
+3 -1
View File
@@ -119,7 +119,9 @@ async function executePayment(payment, key) {
if (key !== accountKey()) return { state: 'pending' };
const payInfo = toSdkPayInfo(payment);
if (!canOpenDypay()) throw new Error('请先安装或升级抖音客户端');
if (!initDypay({ appId: payInfo.appid, callbackScheme: payment.douyin.callbackScheme || 'trustbridgeapp' })) {
const callbackScheme = payment.douyin?.callbackScheme || 'trustbridgeapp';
const universalLink = payment.douyin?.universalLink || payment.douyin?.UniversalLinks || 'https://app.tbmall.xin/uni-universallinks/__UNI__4910728/';
if (!initDypay({ appId: payInfo.appid, callbackScheme, universalLink })) {
throw new Error('支付初始化失败,请稍后重试');
}
// Persist before entering native code so a killed process remains recoverable.