shish 2 лет назад
Родитель
Сommit
351ec43f45
1 измененных файлов с 2 добавлено и 2 удалено
  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);