udpate 溯源首页详情接口
This commit is contained in:
parent
8df9a67241
commit
85ada8e9f3
|
@ -48,6 +48,16 @@ class IndexController extends BaseApiController
|
|||
$data['monitor'] = [];
|
||||
}else{
|
||||
$data['monitor']['soil_monitor_data'] = [
|
||||
'soil_temperature'=>$landCollection['soil_temperature'],
|
||||
'soil_moisture'=>$landCollection['soil_moisture'],
|
||||
'conductivity'=>$landCollection['soil_conductivity'],
|
||||
'ph'=>$landCollection['soil_PH'],
|
||||
'n_content'=>$landCollection['soil_potassium_phosphate_nitrogen'],
|
||||
'p_content'=>$landCollection['soil_potassium_phosphate_phosphorus'],
|
||||
'k_content'=>$landCollection['soil_potassium_phosphate_potassium'],
|
||||
'create_time' => $landCollection['create_time']
|
||||
];
|
||||
$data['monitor']['air_monitor_data'] = [
|
||||
'wind_direction'=>$landCollection['wind_direction'],
|
||||
'wind_speed'=>$landCollection['wind_speed'],
|
||||
'air_temperature'=>$landCollection['ambient_temperature'],
|
||||
|
@ -58,16 +68,6 @@ class IndexController extends BaseApiController
|
|||
'light_intensity'=>$landCollection['ambient_lighting'],
|
||||
'create_time' => $landCollection['create_time']
|
||||
];
|
||||
$data['monitor']['air_monitor_data'] = [
|
||||
'soil_temperature'=>$landCollection['soil_temperature'],
|
||||
'soil_moisture'=>$landCollection['soil_moisture'],
|
||||
'conductivity'=>$landCollection['soil_conductivity'],
|
||||
'ph'=>$landCollection['soil_PH'],
|
||||
'n_content'=>$landCollection['soil_potassium_phosphate_nitrogen'],
|
||||
'p_content'=>$landCollection['soil_potassium_phosphate_phosphorus'],
|
||||
'k_content'=>$landCollection['soil_potassium_phosphate_potassium'],
|
||||
'create_time' => $landCollection['create_time']
|
||||
];
|
||||
}
|
||||
}
|
||||
return $this->success('请求成功',$data);
|
||||
|
|
Loading…
Reference in New Issue