Jing Li 2023-08-03 22:55:39 +08:00
parent a4f814bfac
commit 29502e0d4a
1 changed files with 1 additions and 0 deletions

View File

@ -342,6 +342,7 @@ class BiAngDeviceLogService
switch ($key) { switch ($key) {
case 'current_rainfall': case 'current_rainfall':
$attributes['daily_rainfall'] = $item; $attributes['daily_rainfall'] = $item;
break;
case 'wind_samples': case 'wind_samples':
if (! empty($item)) { if (! empty($item)) {
$attributes['wind_degree'] = value(function (array $windSamples) { $attributes['wind_degree'] = value(function (array $windSamples) {