调整数字

dev
vine_liutk 2023-06-19 15:52:27 +08:00
parent 89a27ea219
commit ed08dfab77
1 changed files with 3 additions and 3 deletions

View File

@ -250,7 +250,7 @@ class DeviceController extends Controller
}else{//临时写一些假数据
switch($deviceColumn){
case 'chlorine':
$data[$device->monitoring_point][$_key] = rand(0, 20) / 1000;;
$data[$device->monitoring_point][$_key] = 0.016;
break;
case 'conductivity':
$data[$device->monitoring_point][$_key] = 563 ;//电导率
@ -382,7 +382,7 @@ class DeviceController extends Controller
$y[] = $value;
} else {
$y[] = match ($deviceColumn) {
'chlorine' => rand(0, 20) / 1000,
'chlorine' => 0.016,
'conductivity' => 563,
'oxygen' => 0.09,
'ph' => rand(750, 770) / 100,
@ -518,7 +518,7 @@ class DeviceController extends Controller
if($device->type == DeviceType::WaterQuality){//如果是水质设备,则写死假数据
switch($column){
case 'chlorine':
$data[$column][$key] = rand(0, 20) / 1000;
$data[$column][$key] = 0.016;
break;
case 'conductivity':
$data[$column][$key] = 563 ;//电导率