改进 EMQX 支持

This commit is contained in:
iVampireSP.com 2023-01-19 18:11:25 +08:00
parent 7e36657e36
commit ec10a0abd3
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 1 additions and 3 deletions

View File

@ -11,8 +11,6 @@
class DeviceController extends Controller
{
//
public function index(Request $request): RedirectResponse|View
{
$emqx = new EmqxSupport();

View File

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