From 6e54c31df658795ec830fc93a26cd6e3d910e2ef Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Fri, 20 Apr 2018 10:29:45 +0800
Subject: [PATCH] 修正函数方法参数

---
 application/modules/Role/controllers/Role.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/application/modules/Role/controllers/Role.php b/application/modules/Role/controllers/Role.php
index bcc4cb8..24298b3 100644
--- a/application/modules/Role/controllers/Role.php
+++ b/application/modules/Role/controllers/Role.php
@@ -18,9 +18,11 @@
 		if($this->getRequest()->isXmlHttpRequest()){
 			$total = $this->role_service->getRoleListTotal();
 			$data['draw'] = !empty($_REQUEST['draw'])?$_REQUEST['draw']:1;
+			$data['start'] = !empty($_REQUEST['start'])?$_REQUEST['start']:0;
+			$data['length'] = !empty($_REQUEST['length'])?$_REQUEST['length']:10;
 			$data['recordsTotal'] = $total;
 			$data['recordsFiltered'] = $total;
-			$data['data'] = $this->role_service->getRoleList();
+			$data['data'] = $this->role_service->getRoleList(array(), array(), array(), $data['length'], $data['start']);
 			exit($this->sendToDataTable($data));
 		}
 	}

--
Gitblit v1.8.0