Compare commits
No commits in common. "4767ae58c6ead37b99d77e8f814891afa113f874" and "19363319cff52504a0037577ac4a2a94411b574a" have entirely different histories.
4767ae58c6
...
19363319cf
|
@ -121,6 +121,8 @@
|
||||||
}
|
}
|
||||||
$data = Action::where('plant_id',$params['plant_id'])->where('type',$params['type'])->order('create_time desc')->select()->each(function($item){
|
$data = Action::where('plant_id',$params['plant_id'])->where('type',$params['type'])->order('create_time desc')->select()->each(function($item){
|
||||||
$item['detail'] = json_decode($item['detail'],true);
|
$item['detail'] = json_decode($item['detail'],true);
|
||||||
|
$item['create_time'] = date('Y-m-d H:i:s',$item['create_time']);
|
||||||
|
$item['update_time'] = date('Y-m-d H:i:s',$item['update_time']);
|
||||||
return $item;
|
return $item;
|
||||||
})->toArray();
|
})->toArray();
|
||||||
return $this->success('请求成功',$data);
|
return $this->success('请求成功',$data);
|
||||||
|
|
Loading…
Reference in New Issue