Fix
parent
cd16fbf658
commit
c2475f4baa
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue