From 5e1ed52ff89d15ab1df5a4740cf61177fe61e8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Thu, 20 Feb 2025 22:44:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Utils/API/PaymentNew.php | 2 ++ app/controller/api/WithdrawController.php | 15 +++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/Utils/API/PaymentNew.php b/app/Utils/API/PaymentNew.php index f1a4b8e..8b48614 100644 --- a/app/Utils/API/PaymentNew.php +++ b/app/Utils/API/PaymentNew.php @@ -74,6 +74,8 @@ class PaymentNew // Guzzle HTTP client $client = new Client(); // var_dump($orderId); + var_dump(1111111111111111111111111111111111111111111); + var_dump($PaymentChannelId); // 请求数据 $payload = [ "Amount" => $money, diff --git a/app/controller/api/WithdrawController.php b/app/controller/api/WithdrawController.php index 0e2649d..7ee6d27 100644 --- a/app/controller/api/WithdrawController.php +++ b/app/controller/api/WithdrawController.php @@ -76,12 +76,15 @@ class WithdrawController ->get(); // 手动映射字段 - $withdrawOrders = $withdrawOrders->map(function ($item) { - // 将 money 字段映射为 amount - $item->amount = $item->money; - unset($item->money); // 删除原始的 money 字段 - return $item; - }); + // $withdrawOrders = $withdrawOrders->map(function ($item) { + // // 将 money 字段映射为 amount + // $item->amount = $item->money; + + // unset($item->money); // 删除原始的 money 字段 + // return $item; + // }); + // $withdrawOrders->money = 100; + // var_dump($withdrawOrders); // 返回成功响应 return ApiResponseApp::success($withdrawOrders);