public function actionIndex($backend = false) { header('Content-Type: text/html; charset=UTF-8'); $backend = $backend ? true : $backend; if (isset($_POST) && $_POST) { $cnpnr = new ChinaPNR(); $cnpnr->setResponse($_POST, $backend); if ($response = $cnpnr->getResponse()) { $this->response = $response; $result = $this->_responser(); if ($backend) { exit('RECV_ORD_ID_' . $response[$response[ChinaPNR::PARAM_MERPRIV]['showId']]); } } } }