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()) {