1
0
Fork 0
main
vine_liutk 2023-09-06 15:43:14 +08:00
parent ee5f5a3f3c
commit 5a19d822d9
3 changed files with 2 additions and 2 deletions

View File

@ -136,12 +136,12 @@ class DeviceWarningService
if(strpos($column, ',')){//看是否是并联条件 if(strpos($column, ',')){//看是否是并联条件
$_columns = explode(',',$column); $_columns = explode(',',$column);
foreach($_columns as $cc){ foreach($_columns as $cc){
$msg.= $fieldNameMap[$cc].'达到'.$log->$cc.$fieldUnitMap[$cc].'值,且'; $msg.= $fieldNameMap[$cc].'达到'.($log->$cc ?? 0).$fieldUnitMap[$cc].'值,且';
} }
$msg = mb_substr($msg, 0, -2); $msg = mb_substr($msg, 0, -2);
}else{ }else{
$msg = $fieldNameMap[$column].'达到'.$log->$column.$fieldUnitMap[$column].'值'; $msg = $fieldNameMap[$column].'达到'.($log->$column ?? 0).$fieldUnitMap[$column].'值';
} }
$notices[] = [ $notices[] = [

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 MiB

View File

Before

Width:  |  Height:  |  Size: 8.8 MiB

After

Width:  |  Height:  |  Size: 8.8 MiB