From 8a3f6ee5a7efbff22c3c6f8553ca12f79872c44a Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Mon, 29 Jun 2026 15:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=84=9A=E6=9C=AC=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E6=8F=90=E7=A4=BA4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/SetCameraData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/SetCameraData.php b/app/Console/Commands/SetCameraData.php index 5478a25..604549f 100644 --- a/app/Console/Commands/SetCameraData.php +++ b/app/Console/Commands/SetCameraData.php @@ -83,10 +83,10 @@ class SetCameraData extends Command } if ($response) { $resData = json_decode($response, true); - if ($resData['error'] < 1) { + if (isset($resData['error']) && $resData['error'] < 1) { $body = $resData['body']; } else { - echo $resData['message']; + echo $resData['message'] ?? ''; exit; } // 通过设备信息获取设备状态