feat: 转账

This commit is contained in:
陈狼 2025-02-18 17:45:10 +08:00
parent c77b941c91
commit ebb195aacb
2 changed files with 3 additions and 8 deletions

View File

@ -79,17 +79,13 @@ class PaymentNew
"PayeeIFSCCode" => "",
"PaymentChannelId" => $PaymentChannelId,
"ShopInformUrl" => "http://149.129.107.38/",
"ShopOrderId" => "10",
"ShopOrderId" => "11",
"ShopUserLongId" => "776ae472-d4fc-435c-9639-be5763138d95"
];
// 生成加密值
$encrypt_value = self::generate_encrypt_value($payload, $secret_key);
$payload["EncryptValue"] = $encrypt_value;
var_dump($payload);
var_dump(111111111);
var_dump($payload["EncryptValue"]);
try {
// 发送 POST 请求
$response = $client->post($url, [
@ -99,7 +95,6 @@ class PaymentNew
'Content-Type' => 'application/json',
]
]);
var_dump(11111111111111);
var_dump($response);
// 获取响应内容
$responseBody = $response->getBody()->getContents();

View File

@ -163,7 +163,7 @@ class WithdrawController
$type = $request->post('type');
if ($type == 1) {
$res = Payment::pushMoney($amount, $bank_username, $account, $bank_name);
$res = PaymentNew::pushMoney($amount, $bank_username, $account, $bank_name);
var_dump($res);
if ($res['Success'] == 200) {
$Withdraw = Withdraw::where('id', $id)->first();
@ -193,7 +193,7 @@ class WithdrawController
/**
* @Apidoc\Title("请求回调")
* @Apidoc\Url("api/withdraw/callback")
* @Apidoc\Method("POST")
* @Apidoc\Method("GET")
*/
public function callback(Request $request)
{