修复:更新ios支付接口

This commit is contained in:
2025-12-15 10:41:41 +08:00
parent 34d6cfdf9e
commit 1457a24cea
3 changed files with 7 additions and 4 deletions

View File

@@ -307,9 +307,12 @@
const obj = await getIosPayment(res.transactionIdentifier, res.payment.productid, res.payment.username, res.transactionReceipt, userStore.userInfo.id)
console.log(obj, '校验订单')
finishTransaction(res)
uni.switchTab({
url: '/pages/user/index'
})
} catch (error) {
console.error('校验订单失败:', error)
// 也需要释放订单,防止再次提交支付窗口拉不起来
// 也需要释放订单,防止失败再次提交支付窗口拉不起来
finishTransaction(res)
}