Default Changelist
This commit is contained in:
@@ -20,13 +20,14 @@ class TransferBatches extends SmallProgram
|
|||||||
#[ArrayShape(['code_url' => "string"])]
|
#[ArrayShape(['code_url' => "string"])]
|
||||||
public function request(TransferDetail $detail): array
|
public function request(TransferDetail $detail): array
|
||||||
{
|
{
|
||||||
|
$body = [];
|
||||||
$body['appid'] = $this->getConfig()->getAppid();
|
$body['appid'] = $this->getConfig()->getAppid();
|
||||||
$body['out_trade_no'] = $detail->out_detail_no;
|
$body['out_trade_no'] = $detail->out_detail_no;
|
||||||
$body["batch_name"] = $this->getConfig()->getBody();
|
$body["batch_name"] = $this->getConfig()->getBody();
|
||||||
$body["batch_remark"] = $this->getConfig()->getBody();
|
$body["batch_remark"] = $this->getConfig()->getBody();
|
||||||
$body["total_amount"] = $detail->transfer_amount;
|
$body["total_amount"] = $detail->transfer_amount;
|
||||||
$body["total_num"] = 1;
|
$body["total_num"] = 1;
|
||||||
$body["transfer_detail_list"] = $detail->toArray();
|
$body["transfer_detail_list"] = [$detail->toArray()];
|
||||||
|
|
||||||
$sign = $this->signature('POST', '/v3/transfer/batches', $json = json_encode($body, JSON_UNESCAPED_UNICODE));
|
$sign = $this->signature('POST', '/v3/transfer/batches', $json = json_encode($body, JSON_UNESCAPED_UNICODE));
|
||||||
|
|
||||||
@@ -39,7 +40,7 @@ class TransferBatches extends SmallProgram
|
|||||||
if (!empty($proxyHost) && $proxyPort > 0) {
|
if (!empty($proxyHost) && $proxyPort > 0) {
|
||||||
$client->withProxyHost($proxyHost)->withProxyPort($proxyPort);
|
$client->withProxyHost($proxyHost)->withProxyPort($proxyPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
$client->post('/v3/transfer/batches');
|
$client->post('/v3/transfer/batches');
|
||||||
$client->close();
|
$client->close();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user