feat: 转账
This commit is contained in:
parent
c77b941c91
commit
ebb195aacb
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue