正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -30,9 +30,14 @@ class CustomController extends BaseController | @@ -30,9 +30,14 @@ class CustomController extends BaseController | ||
| 30 | // 每页数量 | 30 | // 每页数量 |
| 31 | $limit = intval($this->param['limit']??20); | 31 | $limit = intval($this->param['limit']??20); |
| 32 | 32 | ||
| 33 | + $name = request()->get('name'); | ||
| 34 | + $map = []; | ||
| 35 | + if($name){ | ||
| 36 | + $map[] = ['name','like',htmlspecialchars($name)]; | ||
| 37 | + } | ||
| 33 | 38 | ||
| 34 | $lists = CustomLogic::instance()->getList( | 39 | $lists = CustomLogic::instance()->getList( |
| 35 | - [], | 40 | + $map, |
| 36 | [], | 41 | [], |
| 37 | ['id','name','title','status','url','keywords','description','created_at','updated_at'], | 42 | ['id','name','title','status','url','keywords','description','created_at','updated_at'], |
| 38 | $limit | 43 | $limit |
-
请 注册 或 登录 后发表评论