From 6bb3c1f15ddf6ede575c7081f7f323fd08b9d112 Mon Sep 17 00:00:00 2001 From: ellis7 Date: Wed, 17 Jul 2019 14:26:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=AF=8D=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/AppGroup.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/admin/controller/AppGroup.php b/application/admin/controller/AppGroup.php index 9e154d2..3f39382 100644 --- a/application/admin/controller/AppGroup.php +++ b/application/admin/controller/AppGroup.php @@ -34,7 +34,9 @@ class AppGroup extends Base { if ($type) { switch ($type) { case 1: - $obj = $obj->where('hash', $keywords); + if (strlen($keywords)) { + $obj = $obj->where('hash', $keywords); + } break; case 2: $obj = $obj->whereLike('name', "%{$keywords}%");