调整报警内容
parent
4f5ce5642d
commit
31a296f98a
|
|
@ -147,7 +147,7 @@ class DeviceWarningService
|
|||
$msg = $fieldNameMap[$column].'达到'.($log->$column ?? 0).$fieldUnitMap[$column].'值';
|
||||
}
|
||||
}
|
||||
|
||||
if($msg){
|
||||
$notices[] = [
|
||||
'device_id' => $device->id,
|
||||
'lv' => $lv,
|
||||
|
|
@ -159,6 +159,7 @@ class DeviceWarningService
|
|||
'loggable_id' => $log->id,
|
||||
];
|
||||
}
|
||||
}
|
||||
count($notices) > 0 && WarningNotice::insert($notices);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue