public function invoke($arrInput) { try { $objDataService = new Service_Data_Testman(); $strUrlHost = trim($arrInput["urlHost"]); $strProxyHost = $objDataService->replaceOnlineHost($strUrlHost); $arrRet = array("errno" => Navilib_CommonError::SUCCESS, "data" => array("urlHost" => $strUrlHost, "appName" => trim($arrInput["appName"]), "proxyHost" => $strProxyHost)); return Navilib_Utils::result($arrRet["errno"], $arrRet["data"]); } catch (Exception $e) { Bd_Log::warning($e->getMessage(), $e->getCode()); return Navilib_Utils::result($e->getCode(), array()); } }