This commit is contained in:
lingling 2025-02-20 23:27:47 +08:00
commit 46b747495b
2 changed files with 11 additions and 6 deletions

View File

@ -74,6 +74,8 @@ class PaymentNew
// Guzzle HTTP client
$client = new Client();
// var_dump($orderId);
var_dump(1111111111111111111111111111111111111111111);
var_dump($PaymentChannelId);
// 请求数据
$payload = [
"Amount" => $money,

View File

@ -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);