From 693ec4fa6549e38fba8e3ef386566e7243ec0029 Mon Sep 17 00:00:00 2001 From: xl Date: Tue, 7 Nov 2023 16:48:59 +0800 Subject: [PATCH] Default Changelist --- wchat/wx/V3/TransferBatches.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wchat/wx/V3/TransferBatches.php b/wchat/wx/V3/TransferBatches.php index 7c65817..e39e933 100644 --- a/wchat/wx/V3/TransferBatches.php +++ b/wchat/wx/V3/TransferBatches.php @@ -18,7 +18,7 @@ class TransferBatches extends SmallProgram * @return array * @throws Exception */ - #[ArrayShape(['code_url' => "string"])] + #[ArrayShape([])] public function request(TransferDetail $detail): array { $body = []; @@ -48,7 +48,7 @@ class TransferBatches extends SmallProgram $data = json_decode($client->getBody(), TRUE); if (json_last_error() != JSON_ERROR_NONE) { - return ['errorcoe' => $client->getStatusCode(), 'errormsg' => $client->getBody()]; + return ['code' => $client->getStatusCode(), 'message' => $client->getBody()]; } else { return $data; }