This commit is contained in:
unknown 2023-08-30 17:08:37 +08:00
parent 5694df127f
commit ddb01d4a8f

View File

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