Compare commits

..

No commits in common. "650ff4d5ba973be5de9696e7584a59a60b30ee7d" and "b205950ac3c01b40dd44f045562e35374a28723b" have entirely different histories.

1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@
}
$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['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;
})->toArray();
return $this->success('请求成功',$data);