request->param('fence_house_id'); $list = AnimalOperateAction::where('fence_house_id', $fenceHouseId)->order('id desc')->limit(5)->select()->each(function($item){ $item['detail'] = json_decode($item['detail'],true); return $item; })->toArray(); return $this->success('成功', $list); } }