likang 3 年之前
父節點
當前提交
c831647d77
共有 1 個文件被更改,包括 2 次插入7 次删除
  1. 2 7
      catch/wind/controller/Wind.php

+ 2 - 7
catch/wind/controller/Wind.php

@@ -115,13 +115,8 @@ class Wind extends CatchController
      * @time 2022年04月28日 19:53
      */
     public function getWindOptions(Request $request){
-        $data = $request->get();
-        $where = [];
-        if($data["name"])
-        {
-            $where[] = ["name",'like','%'.$data['name'].'%'];
-        }
-        $list=$this->windModel->where($where)->field('id as value,name as text')->select();
+       
+        $list=$this->windModel->field('id as value,name as text')->select();
         return CatchResponse::success($list);
     }
 }