shish 2 years ago
parent
commit
351ec43f45
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app-ghs/controllers/CpItemController.php

+ 2 - 2
app-ghs/controllers/CpItemController.php

@@ -26,9 +26,9 @@ class CpItemController extends BaseController
         }
         if (!empty($search)) {
             if (stringUtil::isLetter($search)) {
-                $where['py'] = $search;
+                $where['py'] = ['like', $search];
             } else {
-                $where['name'] = $search;
+                $where['name'] = ['like', $search];
             }
         }
         $respond = CpItemClass::getItemList($where);