更新 'app/Http/Controllers/DeviceController.php'
parent
472fa2aafe
commit
6ea8d72562
|
|
@ -250,7 +250,7 @@ class DeviceController extends Controller
|
|||
}else{//临时写一些假数据
|
||||
switch($deviceColumn){
|
||||
case 'chlorine':
|
||||
$data[$device->monitoring_point][$_key] = 0;
|
||||
$data[$device->monitoring_point][$_key] = 0.02;
|
||||
break;
|
||||
case 'conductivity':
|
||||
$data[$device->monitoring_point][$_key] = 563 ;//电导率
|
||||
|
|
@ -382,7 +382,7 @@ class DeviceController extends Controller
|
|||
$y[] = $value;
|
||||
} else {
|
||||
$y[] = match ($deviceColumn) {
|
||||
'chlorine' => 0,
|
||||
'chlorine' => 0.02,
|
||||
'conductivity' => 563,
|
||||
'oxygen' => 0.09,
|
||||
'ph' => rand(750, 770) / 100,
|
||||
|
|
|
|||
Loading…
Reference in New Issue