From c201eeedd2353735787aad04345dc5b097e37b35 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Thu, 25 Apr 2019 17:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E6=97=A0=E6=B3=95=E6=90=9C=E7=B4=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/model/system/SystemAdmin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/admin/model/system/SystemAdmin.php b/application/admin/model/system/SystemAdmin.php index b20cf575..03ef9fbb 100644 --- a/application/admin/model/system/SystemAdmin.php +++ b/application/admin/model/system/SystemAdmin.php @@ -146,8 +146,7 @@ class SystemAdmin extends ModelBasic public static function systemPage($where){ $model = new self; if($where['name'] != ''){ - $model = $model->where('account','LIKE',"%$where[name]%"); - $model = $model->where('real_name','LIKE',"%$where[name]%"); + $model = $model->where('account|real_name','LIKE',"%$where[name]%"); } if($where['roles'] != '') $model = $model->where("CONCAT(',',roles,',') LIKE '%,$where[roles],%'");