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() {