From 5806b3a0c619868a7216dc088e2d5fe0356ebacb Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Wed, 31 Jan 2024 17:50:52 +0800 Subject: [PATCH] update --- app/api/controller/OperationLogController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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