diff --git a/app/api/controller/OperationLogController.php b/app/api/controller/OperationLogController.php index 3a65f8e..8bfc783 100644 --- a/app/api/controller/OperationLogController.php +++ b/app/api/controller/OperationLogController.php @@ -10,7 +10,7 @@ class OperationLogController extends BaseApiController public function index() { $fenceHouseId = $this->request->param('fence_house_id'); - $list = AnimalOperateAction::where('fence_house_id', $fenceHouseId)->order('id desc')->limit(5)->select(); + $list = AnimalOperateAction::where('fence_house_id', $fenceHouseId)->order('id desc')->limit(5)->select()->toArray(); return $this->success('成功', $list); } } \ No newline at end of file