public function execute() { $arrRequest = Saf_SmartMain::getCgi(); $arrInput = $arrRequest["post"]; $pageService = new Service_Page_Apiplatform_CurlProxy("param_apiplatform_curlproxy"); $ret = $pageService->execute($arrInput); Navilib_View::output($ret, Navilib_View::JSON); Navilib_LogHook::addNotice('err_no', $ret["errno"]); }
public function execute() { $arrRequest = Saf_SmartMain::getCgi(); $arrInput = $arrRequest["get"]; $pageService = new Service_Page_Apiplatform_GetAllAppName("param_apiplatform_getallappname"); $ret = $pageService->execute($arrInput); //header("Access-Control-Allow-Origin: *"); //允许所有域名发起的跨域请求 Navilib_View::output($ret, Navilib_View::JSON); Navilib_LogHook::addNotice('err_no', $ret["errno"]); }
public function execute() { $arrRequest = Saf_SmartMain::getCgi(); $arrInput = $arrRequest['get']; $pageService = new Service_Page_Apiplatform_RegressionTest('param_apiplatform_regressiontest'); $pageInfo = $pageService->execute($arrInput); Navilib_LogHook::addNotice('err_no', $pageInfo["errno"]); if (Navilib_CommonError::SUCCESS !== $pageInfo["errno"]) { Navilib_View::output($pageInfo, Navilib_View::JSON); } else { $tpl = Bd_TplFactory::getInstance(); $tpl->assign('urlHost', $pageInfo['data']['urlHost']); $tpl->assign('proxyHost', $pageInfo['data']['proxyHost']); $tpl->assign('appName', $pageInfo['data']['appName']); $tpl->assign('userName', CURRENT_USER); $tpl->display('naviServerAdmin/apiplatform/RegressionTest.tpl'); } }
public function execute() { $arrRequest = Saf_SmartMain::getCgi(); $arrInput = $arrRequest['get']; $pageService = new Service_Page_Apiplatform_Testman('param_apiplatform_testman'); $pageInfo = $pageService->execute($arrInput); Navilib_LogHook::addNotice('err_no', $pageInfo["errno"]); if (Navilib_CommonError::SUCCESS !== $pageInfo["errno"]) { Navilib_View::output($pageInfo, Navilib_View::JSON); } else { $tpl = Bd_TplFactory::getInstance(); $tpl->assign('freqDomain', $pageInfo['data']['freqDomain']); $tpl->assign('freqModule', $pageInfo['data']['freqModule']); $tpl->assign('history', $pageInfo['data']['history']); $tpl->assign('offset', $pageInfo['data']['offset']); $tpl->assign('hasPre', $pageInfo['data']['hasPre']); $tpl->assign('hasNext', $pageInfo['data']['hasNext']); $tpl->assign('userName', CURRENT_USER); $tpl->display('naviServerAdmin/apiplatform/Testman.tpl'); } }