udpate 溯源首页详情接口
This commit is contained in:
parent
8df9a67241
commit
85ada8e9f3
|
@ -48,25 +48,25 @@ class IndexController extends BaseApiController
|
||||||
$data['monitor'] = [];
|
$data['monitor'] = [];
|
||||||
}else{
|
}else{
|
||||||
$data['monitor']['soil_monitor_data'] = [
|
$data['monitor']['soil_monitor_data'] = [
|
||||||
'wind_direction'=>$landCollection['wind_direction'],
|
'soil_temperature'=>$landCollection['soil_temperature'],
|
||||||
'wind_speed'=>$landCollection['wind_speed'],
|
'soil_moisture'=>$landCollection['soil_moisture'],
|
||||||
'air_temperature'=>$landCollection['ambient_temperature'],
|
'conductivity'=>$landCollection['soil_conductivity'],
|
||||||
'air_moisture'=>$landCollection['ambient_humidity'],
|
'ph'=>$landCollection['soil_PH'],
|
||||||
'co2_content'=>$landCollection['carbon_dioxide'],
|
'n_content'=>$landCollection['soil_potassium_phosphate_nitrogen'],
|
||||||
'pressure'=>$landCollection['ambient_air_pressure'],
|
'p_content'=>$landCollection['soil_potassium_phosphate_phosphorus'],
|
||||||
'rainfall'=>$landCollection['rainfall'],
|
'k_content'=>$landCollection['soil_potassium_phosphate_potassium'],
|
||||||
'light_intensity'=>$landCollection['ambient_lighting'],
|
'create_time' => $landCollection['create_time']
|
||||||
'create_time' => $landCollection['create_time']
|
|
||||||
];
|
];
|
||||||
$data['monitor']['air_monitor_data'] = [
|
$data['monitor']['air_monitor_data'] = [
|
||||||
'soil_temperature'=>$landCollection['soil_temperature'],
|
'wind_direction'=>$landCollection['wind_direction'],
|
||||||
'soil_moisture'=>$landCollection['soil_moisture'],
|
'wind_speed'=>$landCollection['wind_speed'],
|
||||||
'conductivity'=>$landCollection['soil_conductivity'],
|
'air_temperature'=>$landCollection['ambient_temperature'],
|
||||||
'ph'=>$landCollection['soil_PH'],
|
'air_moisture'=>$landCollection['ambient_humidity'],
|
||||||
'n_content'=>$landCollection['soil_potassium_phosphate_nitrogen'],
|
'co2_content'=>$landCollection['carbon_dioxide'],
|
||||||
'p_content'=>$landCollection['soil_potassium_phosphate_phosphorus'],
|
'pressure'=>$landCollection['ambient_air_pressure'],
|
||||||
'k_content'=>$landCollection['soil_potassium_phosphate_potassium'],
|
'rainfall'=>$landCollection['rainfall'],
|
||||||
'create_time' => $landCollection['create_time']
|
'light_intensity'=>$landCollection['ambient_lighting'],
|
||||||
|
'create_time' => $landCollection['create_time']
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue