From 271932f35a60f7de674f22b1e5fa9b2cf6778287 Mon Sep 17 00:00:00 2001 From: yhf320 Date: Wed, 7 Nov 2018 10:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99index()=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=96=B9=E5=BC=8F=E6=94=B9=E4=B8=BA=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E6=A8=A1=E5=9E=8B=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/auth/Admin.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/application/admin/controller/auth/Admin.php b/application/admin/controller/auth/Admin.php index 1995171d..1da8cd37 100644 --- a/application/admin/controller/auth/Admin.php +++ b/application/admin/controller/auth/Admin.php @@ -105,19 +105,6 @@ class Admin extends Backend 'extra_where' => ['IN',$this->childrenAdminIds] ]; $list = $this->model->getAdminList($params); - /* $total = $this->model - ->where($where) - ->where('id', 'in', $this->childrenAdminIds) - ->order($sort, $order) - ->count(); - - $list = $this->model - ->where($where) - ->where('id', 'in', $this->childrenAdminIds) - ->field(['password', 'salt', 'token'], true) - ->order($sort, $order) - ->limit($offset, $limit) - ->select(); */ foreach ($list['rows'] as $k => &$v) { $groups = isset($adminGroupName[$v['id']]) ? $adminGroupName[$v['id']] : []; @@ -125,7 +112,6 @@ class Admin extends Backend $v['groups_text'] = implode(',', array_values($groups)); } unset($v); - //$result = array("total" => $total, "rows" => $list); return json($list); }