shish 1 год назад
Родитель
Сommit
004d6f540f
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      app-hd/controllers/GhsController.php

+ 7 - 0
app-hd/controllers/GhsController.php

@@ -166,6 +166,13 @@ class GhsController extends BaseController
         $where = [];
         $where['ownShopId'] = $this->shopId;
         $where['delStatus'] = $delStatus;
+
+        $name = isset($get['name']) ? $get['name'] : '';
+        if (stringUtil::isLetter($name)) {
+            $where['py'] = ['like', $name];
+        } else {
+            $where['name'] = ['like', $name];
+        }
         $respond = GhsClass::getGhsList($where);
 
         //广告列表