Default Changelist
This commit is contained in:
@@ -5,6 +5,7 @@ namespace wchat\wx\V3;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use JetBrains\PhpStorm\ArrayShape;
|
use JetBrains\PhpStorm\ArrayShape;
|
||||||
use Kiri\Client;
|
use Kiri\Client;
|
||||||
|
use Kiri\CurlClient;
|
||||||
use wchat\wx\SmallProgram;
|
use wchat\wx\SmallProgram;
|
||||||
|
|
||||||
class TransferBatches extends SmallProgram
|
class TransferBatches extends SmallProgram
|
||||||
@@ -31,7 +32,7 @@ class TransferBatches extends SmallProgram
|
|||||||
|
|
||||||
$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));
|
||||||
|
|
||||||
$client = new Client('api.mch.weixin.qq.com', 443, TRUE);
|
$client = new CurlClient('api.mch.weixin.qq.com', 443, TRUE);
|
||||||
$client->withAddedHeader('Authorization', $sign)->withContentType('application/json')
|
$client->withAddedHeader('Authorization', $sign)->withContentType('application/json')
|
||||||
->withAgent('application/json')->withBody($json)->withAddedHeader("Accept", "*/*");
|
->withAgent('application/json')->withBody($json)->withAddedHeader("Accept", "*/*");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user