From b3f5618b7e820f765ed0f44bdcf91c98937d25d2 Mon Sep 17 00:00:00 2001 From: zhaofengliang Date: Mon, 22 Jul 2024 19:47:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4uni-virtualPayment=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=A4=BA=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/virtual-payment/virtual-payment.uvue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/API/virtual-payment/virtual-payment.uvue b/pages/API/virtual-payment/virtual-payment.uvue index 3d59bb4c..d59b12cc 100644 --- a/pages/API/virtual-payment/virtual-payment.uvue +++ b/pages/API/virtual-payment/virtual-payment.uvue @@ -200,16 +200,17 @@ this.virtualPaymentContext.getUnfinishedTransactions({ success: (res) => { uni.hideLoading() - console.log("获取未结束的订单列表个数:" + res.transactions.length) + console.log("获取未结束的订单列表个数:" + res.transactions.length) + uni.showToast({ + title: "获取未结束的订单列表个数:" + res.transactions.length, + icon: 'success' + }) + res.transactions.forEach(transaction => { console.log("getUnfinishedTransactions成功的交易productId= " + transaction.productId) //TODO: 开发者server验证逻辑 - uni.showToast({ - title: "获取未结束的订单列表个数:" + res.transactions.length, - icon: 'success' - }) //经过开发者server验证成功后请结束该交易 this.virtualPaymentContext.finishTransaction({ transaction: transaction, -- GitLab