likang %!s(int64=3) %!d(string=hai) anos
pai
achega
c831647d77
Modificáronse 1 ficheiros con 2 adicións e 7 borrados
  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);
     }
 }