get(); return \Yz::Return(true,'查询成功',['list'=>$list]); } public function Save() { $Info=request('Info'); $data=['name'=>$Info['name']]; $u=false; if(isset($Info['id']) and $Info['id']<>0){ //更新 $u=DB::table('combo_crowd')->where('id',$Info['id'])->update($data); }else{ //添加 $u=DB::table('combo_crowd')->insert($data); } if($u){ return \Yz::Return(true,"操作完成",[]); }else{ return \Yz::echoError1("操作失败"); } } public function Del(){ $id=request('id'); $d=DB::table('combo_crowd')->where('id',$id)->delete(); if($d){ return \Yz::Return(true,"操作完成",[]); }else{ return \Yz::echoError1("操作失败"); } } }