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