修复回归安全问题并补充验证

This commit is contained in:
xiaowang
2026-06-05 16:10:58 +08:00
parent 784bb0a965
commit 74f8fa5f4e
46 changed files with 917 additions and 311 deletions
+4 -7
View File
@@ -864,9 +864,9 @@ Page({
})
const confirmed = await new Promise(resolve => {
wx.showModal({
title: '模拟支付',
content: `本次需支付 ${order.paymentInfo.amountText},确认模拟支付成功吗?`,
confirmText: '确认支付',
title: '准备支付',
content: `本次需支付 ${order.paymentInfo.amountText},支付单准备后请等待正式支付接入。`,
confirmText: '知道了',
success: res => resolve(Boolean(res.confirm)),
fail: () => resolve(false)
})
@@ -874,11 +874,8 @@ Page({
if (!confirmed) {
return
}
await runWithLoading(() => paymentApi.mockOrderPaymentSuccess(orderId), {
title: '确认支付'
})
wx.showToast({
title: '支付已确认',
title: '支付单已准备',
icon: 'none'
})
await this.loadOrders()