Merge branch 'master' of https://git.shagain.club/shulang/webman
This commit is contained in:
commit
46b747495b
|
@ -74,6 +74,8 @@ class PaymentNew
|
||||||
// Guzzle HTTP client
|
// Guzzle HTTP client
|
||||||
$client = new Client();
|
$client = new Client();
|
||||||
// var_dump($orderId);
|
// var_dump($orderId);
|
||||||
|
var_dump(1111111111111111111111111111111111111111111);
|
||||||
|
var_dump($PaymentChannelId);
|
||||||
// 请求数据
|
// 请求数据
|
||||||
$payload = [
|
$payload = [
|
||||||
"Amount" => $money,
|
"Amount" => $money,
|
||||||
|
|
|
@ -76,12 +76,15 @@ class WithdrawController
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
// 手动映射字段
|
// 手动映射字段
|
||||||
$withdrawOrders = $withdrawOrders->map(function ($item) {
|
// $withdrawOrders = $withdrawOrders->map(function ($item) {
|
||||||
// 将 money 字段映射为 amount
|
// // 将 money 字段映射为 amount
|
||||||
$item->amount = $item->money;
|
// $item->amount = $item->money;
|
||||||
unset($item->money); // 删除原始的 money 字段
|
|
||||||
return $item;
|
// unset($item->money); // 删除原始的 money 字段
|
||||||
});
|
// return $item;
|
||||||
|
// });
|
||||||
|
// $withdrawOrders->money = 100;
|
||||||
|
// var_dump($withdrawOrders);
|
||||||
|
|
||||||
// 返回成功响应
|
// 返回成功响应
|
||||||
return ApiResponseApp::success($withdrawOrders);
|
return ApiResponseApp::success($withdrawOrders);
|
||||||
|
|
Loading…
Reference in New Issue