正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
| @@ -24,6 +24,11 @@ class AiCommandController extends BaseController | @@ -24,6 +24,11 @@ class AiCommandController extends BaseController | ||
| 24 | * @time :2023/6/17 16:27 | 24 | * @time :2023/6/17 16:27 |
| 25 | */ | 25 | */ |
| 26 | public function lists(AiCommandModel $aiCommandModel){ | 26 | public function lists(AiCommandModel $aiCommandModel){ |
| 27 | + if(!empty($this->map['scene'])){ | ||
| 28 | + $this->map[] = ['name|key|ai' => ['like','%'.$this->map['scene'].'%']]; | ||
| 29 | + unset($this->map['scene']); | ||
| 30 | + } | ||
| 31 | + | ||
| 27 | $lists = $aiCommandModel->lists($this->map,$this->page,$this->row,$this->order); | 32 | $lists = $aiCommandModel->lists($this->map,$this->page,$this->row,$this->order); |
| 28 | $this->response('success',Code::SUCCESS,$lists); | 33 | $this->response('success',Code::SUCCESS,$lists); |
| 29 | } | 34 | } |
-
请 注册 或 登录 后发表评论