Jing Li 2023-08-04 12:11:06 +08:00
parent cd16fbf658
commit c2475f4baa
1 changed files with 5 additions and 1 deletions

View File

@ -176,7 +176,11 @@ class BiAngDeviceLogService
}; };
if ($attribute) { if ($attribute) {
$attributes[$attribute] = $v; if ($attribute == 'moment_rainfall') {
$attributes[$attribute] = bcadd($attributes[$attribute] ?? '0.00', $v, 2);
} else {
$attributes[$attribute] = $v;
}
} }
} }
} }