From d9e48ae8ec02cbea4cb22700423864aa3beb4a93 Mon Sep 17 00:00:00 2001 From: win10 Date: Fri, 12 Jun 2020 14:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/keti/model/Keti.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/keti/model/Keti.php b/app/keti/model/Keti.php index 6a8797f7..297fdc52 100644 --- a/app/keti/model/Keti.php +++ b/app/keti/model/Keti.php @@ -28,7 +28,7 @@ class Keti extends BaseModel $query->where('category_id', 'in', $src['category_id']); }) ->when(strlen($src['searchval']) > 0, function($query) use($src){ - $query->where('title', 'like', $src['searchval']); + $query->where('title', 'like', '%' . $src['searchval'] . '%'); }) ->with( [