From 996a0dba6840332947d83f2748af6b0d895a65b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Tue, 16 May 2023 12:01:27 +0800 Subject: [PATCH] Update --- app/Services/DeviceLogService.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Services/DeviceLogService.php b/app/Services/DeviceLogService.php index da93993..812a124 100644 --- a/app/Services/DeviceLogService.php +++ b/app/Services/DeviceLogService.php @@ -393,12 +393,13 @@ class DeviceLogService $attributes = value(function ($soilReports) { $data = [ - 'chlorine' => ['sum' => 0, 'count' => 0], + 'n' => ['sum' => 0, 'count' => 0], + 'p' => ['sum' => 0, 'count' => 0], + 'k' => ['sum' => 0, 'count' => 0], 'conductivity' => ['sum' => 0, 'count' => 0], - 'oxygen' => ['sum' => 0, 'count' => 0], - 'ph' => ['sum' => 0, 'count' => 0], 'temperature' => ['sum' => 0, 'count' => 0], - 'turbidity' => ['sum' => 0, 'count' => 0], + 'humidity' => ['sum' => 0, 'count' => 0], + 'moisture' => ['sum' => 0, 'count' => 0], ]; foreach ($soilReports as $soilReport) {