From c4ea661dcc99949182c952938695d1d9f39eb211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Mon, 8 May 2023 12:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DeviceLogService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/DeviceLogService.php b/app/Services/DeviceLogService.php index 6c185ca..713c822 100644 --- a/app/Services/DeviceLogService.php +++ b/app/Services/DeviceLogService.php @@ -45,6 +45,10 @@ class DeviceLogService } foreach ($data['content'] as $item) { + if (! isset($item['data'])) { + continue; + } + $isSoilMonitoring = Arr::hasAny($item['data'], [ 'soil_humidity', 'soil_temperature',