From 5ec978f4cbb0bc2c7933235c11a7309ed1c202ff Mon Sep 17 00:00:00 2001 From: ste87 Date: Sat, 14 Mar 2026 14:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Speed/Convoy.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Speed/Convoy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Speed/Convoy.php b/Speed/Convoy.php index ebb7ad9..a215363 100644 --- a/Speed/Convoy.php +++ b/Speed/Convoy.php @@ -21,7 +21,9 @@ class Convoy extends Server ])->$method($req_url, $data); if (!$response->successful()) { - throw new Exception($response->json()['message']); + $json = $response->json(); + $message = $json['message'] ?? $json['error'] ?? 'Server Error'; + throw new Exception($message); } return $response->json() ?? [];