likang 3 years ago
parent
commit
c831647d77
1 changed files with 2 additions and 7 deletions
  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
      * @time 2022年04月28日 19:53
      */
      */
     public function getWindOptions(Request $request){
     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);
         return CatchResponse::success($list);
     }
     }
 }
 }