diff --git a/app/api/controller/OperationLogController.php b/app/api/controller/OperationLogController.php index fa12d69..3a65f8e 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')->select()->limit(5); + $list = AnimalOperateAction::where('fence_house_id', $fenceHouseId)->order('id desc')->limit(5)->select(); return $this->success('成功', $list); } } \ No newline at end of file