/** * [getInstanceByIpAndPath 根据ip和路径获取单个安装实例] * @return [type] [description] */ public function getInstanceByIpAndPath() { $this->log('START FUNCTION ' . __FUNCTION__); $errorArray = array('error' => ''); $data = Flight::request()->query->getData(); $needPara = array('ip', 'path'); $error = $this->checkParameter($needPara, $data); $instance = new Instance(); $result = $instance->getInstanceByIpAndPath($data['ip'], $data['path']); $errorArray = $result; Flight::json($errorArray, 200); }