update
This commit is contained in:
parent
77c5c35bbc
commit
1603adda7c
|
@ -251,6 +251,9 @@
|
|||
$item['create_time'] = date('m-d',$item['create_time']);
|
||||
return $item;
|
||||
})->toArray();
|
||||
if(empty($data)){
|
||||
return $this->fail('暂无数据');
|
||||
}
|
||||
$result = [
|
||||
['soil_temp' => array_column($data,'soil_temp'),'create_time' => array_column($data,'create_time'),'max'=>max(array_column($data,'soil_temp'))],
|
||||
['soil_mois' => array_column($data,'soil_mois'),'create_time' => array_column($data,'create_time'),'max'=>max(array_column($data,'soil_mois'))],
|
||||
|
|
Loading…
Reference in New Issue