CageSetModel=new CageSetModel(); $this->SquirrelSetModel=new SquirrelSetModel(); $this->POST =json_decode(file_get_contents('php://input'),true); $this->ExcelSetModel=new ExcelSetModel(); } /** * 获取设置接口 */ public function getSetInfoAction(){ $params['user_id'] = $_SESSION['uid']; //笼位设置 $data['cageSet'] = $this->CageSetModel->getsetinfo($params); //鼠设置 $data['squirrelSet'] = $this->SquirrelSetModel->getsetinfo($params); //excel导出设置 $data['excelSet'] = $this->ExcelSetModel->getsetinfo($params); Tool_Fnc::apiMsg('获取成功', '200',$data); } }