作者 赵彬吉

update

@@ -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 }