Default Changelist

This commit is contained in:
xl
2023-11-07 16:48:59 +08:00
parent 389f5261c7
commit 693ec4fa65
+2 -2
View File
@@ -18,7 +18,7 @@ class TransferBatches extends SmallProgram
* @return array * @return array
* @throws Exception * @throws Exception
*/ */
#[ArrayShape(['code_url' => "string"])] #[ArrayShape([])]
public function request(TransferDetail $detail): array public function request(TransferDetail $detail): array
{ {
$body = []; $body = [];
@@ -48,7 +48,7 @@ class TransferBatches extends SmallProgram
$data = json_decode($client->getBody(), TRUE); $data = json_decode($client->getBody(), TRUE);
if (json_last_error() != JSON_ERROR_NONE) { if (json_last_error() != JSON_ERROR_NONE) {
return ['errorcoe' => $client->getStatusCode(), 'errormsg' => $client->getBody()]; return ['code' => $client->getStatusCode(), 'message' => $client->getBody()];
} else { } else {
return $data; return $data;
} }