public function query(){ $param = input('param.'); //var_dump($param); if(empty($param['ktbh'])){ $this->error("课题编号不能为空"); } if(empty($param['zzxm'])){ $this->error("课题组长姓名不能为空"); } $data=Db::table('ey_lxcx_content') ->where('ktbh',$param['ktbh']) ->where('zzxm',$param['zzxm']) ->find(); if($data){ $this->redirect('home/View/index', ['aid' => $data['aid']]); }else{ $this->error("无此信息,请检查输入是否正确!"); } }
标签: