fix: 恢复抖音过期支付并完善原生状态确认

This commit is contained in:
Codex
2026-09-09 16:29:30 +08:00
parent fd3dc6870a
commit 2e9a732f9d
9 changed files with 142 additions and 19 deletions
@@ -1,7 +1,12 @@
import { UIApplication } from 'UIKit'
import { URL, NSUserActivity } from 'Foundation'
import { InitOptions, PayOptions, PayCallback } from '../interface.uts'
import { configure, invoke } from '../common.uts'
import { configure, invoke, resetPending } from '../common.uts'
export function resetDypay(): void {
resetPending()
TbDouyinPayNative.resetPending()
}
export function initDypay(options: InitOptions): boolean {
if (options.callbackScheme.trim().length == 0 || !configure(options.appId)) return false