From dcccc5056e192606d9280c06a007083268c3e329 Mon Sep 17 00:00:00 2001 From: chen wei bo <1025839511@qq.com> Date: Thu, 9 Oct 2025 22:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9TODO=EF=BC=9ALuffa=E9=92=B1?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Scripts/chat18x/payment/LuffaPayFlow.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/Scripts/chat18x/payment/LuffaPayFlow.ts b/assets/Scripts/chat18x/payment/LuffaPayFlow.ts index 769fecac..a5045541 100644 --- a/assets/Scripts/chat18x/payment/LuffaPayFlow.ts +++ b/assets/Scripts/chat18x/payment/LuffaPayFlow.ts @@ -32,11 +32,15 @@ export class LuffaPayFlow implements PaymentFlow { }); }); } + + const orderData = DataManager.I.getDataById(DataId.Order); // 构造交易参数 + const amount = orderData.getAmountById(orderId); + const walletUrl = orderData.getWalletById(orderId); const rawTx = { - toAddress: "Hm3g4xXM4JHt5EwFUcvVZ8RthR4KWUnR51fKHCbnKkiZ", // TODO - amount: 1 // TODO + toAddress: walletUrl, + amount: Number(amount) }; // 签名交易 @@ -54,7 +58,6 @@ export class LuffaPayFlow implements PaymentFlow { const data = await this.pollOrder(orderId); // 刷新订单数据 - const orderData = DataManager.I.getDataById(DataId.Order); orderData.applyQueryOrder(orderId, data); // 返回结果