From ec10a0abd3bfabeec7e7edd5e618b0c58e42eac1 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Thu, 19 Jan 2023 18:11:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20EMQX=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/DeviceController.php | 2 -- app/Support/EmqxSupport.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/DeviceController.php b/app/Http/Controllers/Admin/DeviceController.php index 64dff07..e1d734a 100644 --- a/app/Http/Controllers/Admin/DeviceController.php +++ b/app/Http/Controllers/Admin/DeviceController.php @@ -11,8 +11,6 @@ class DeviceController extends Controller { - // - public function index(Request $request): RedirectResponse|View { $emqx = new EmqxSupport(); diff --git a/app/Support/EmqxSupport.php b/app/Support/EmqxSupport.php index a26d644..f376233 100644 --- a/app/Support/EmqxSupport.php +++ b/app/Support/EmqxSupport.php @@ -64,7 +64,7 @@ public function clients($params = []) $response = $this->api()->get('clients', $params); } /** @noinspection PhpRedundantCatchClauseInspection */ catch (ConnectionException $e) { Log::error('emqx connect failed.', [$e]); - throw new EmqxSupportException('EMQX API 无法连接。'); + throw new EmqxSupportException('EMQX API 无法连接。' . $e->getMessage()); } if ($response->successful()) {