From ddb01d4a8f6e83165cdbb4341491b646e1c42f98 Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Wed, 30 Aug 2023 17:08:37 +0800 Subject: [PATCH] aa --- app/adminapi/controller/contract/ContractController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/adminapi/controller/contract/ContractController.php b/app/adminapi/controller/contract/ContractController.php index e3fc4111..8314a1c4 100644 --- a/app/adminapi/controller/contract/ContractController.php +++ b/app/adminapi/controller/contract/ContractController.php @@ -134,9 +134,8 @@ class ContractController extends BaseAdminController $data = Contract::where($where) ->page($pageNo, $pageSize) ->order('create_time desc') - ->select() - ->toArray(); - return $this->success('success',$data); + ->select(); + return $this->success('success',['lists'=>$data->toArray(),'page_no'=>$pageNo,'page_size'=>$pageSize,'count'=>$data->count()]); } public function detail() {