Compare commits

...

2 Commits

Author SHA1 Message Date
Jing Li f0f78aa038 Update 2024-06-03 19:43:23 +08:00
Jing Li 23745ee118 Update 2024-06-03 18:56:04 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class WormStatisticsSyncCommand extends Command
$latestReportedAt = WormReport::where('device_id', $device->id)->latest('reported_at')->value('reported_at');
$start = $latestReportedAt ? $latestReportedAt->copy() : $today->copy();
$start = $latestReportedAt ? $latestReportedAt->copy() : $today->copy()->subDays(179);
$days = $start->diffInDays($today, false);

View File

@ -52,7 +52,7 @@ class WaterQualityReportCommand extends Command
$data = [
'conductivity' => rand(560, 565),
'oxygen' => rand(1000, 1100) / 100,
'chlorine' => rand(8, 10) / 100,
'chlorine' => 0.09,
'turbidity' => rand(100000, 103000) / 100,
'temp' => null,
'ph' => rand(750, 760) / 100,