/** * [getInstanceListbyIp 根据ip获取所有实例列表] * @return [type] [description] */ public function getInstanceListbyIp() { $this->log('START FUNCTION ' . __FUNCTION__); $errorArray = array('error' => ''); $data = Flight::request()->query->getData(); $needPara = array('ip'); $error = $this->checkParameter($needPara, $data); $instance = new Instance(); $result = $instance->getInstanceListByIp($data['ip']); $errorArray = $result; Flight::json($errorArray, 200); }