Update
parent
317622f0fc
commit
9c037037c6
|
|
@ -513,7 +513,7 @@ class BiAngDeviceLogService
|
|||
foreach ($data as $key => $item) {
|
||||
if ($item['count'] > 0) {
|
||||
if ($key === 'killed_num') {
|
||||
$attributes[$key] = $item['sum'];
|
||||
$attributes[$key] = (int) $item['sum'];
|
||||
} else {
|
||||
$attributes[$key] = round(bcdiv($item['sum'], $item['count'], 2), 2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue