likang před 3 roky
rodič
revize
c831647d77
1 změnil soubory, kde provedl 2 přidání a 7 odebrání
  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);
     }
 }