yingzi 2 anni fa
parent
commit
395081bf96
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/system/controller/ShowTemplate.php

+ 1 - 1
app/system/controller/ShowTemplate.php

@@ -143,7 +143,7 @@ class ShowTemplate extends  BaseController{
         $data = (new ServiceTypeModel)
                 ->when(1 == 1, function ($query) use ($request, $post) {
                     if (!empty($post["title"])){
-                        $query->where("title",$post["title"]);
+                        $query->where("title","like","%{$post["title"]}%");
                     }
                 })
                 ->page((int)$post["page"], (int)$pageSize)