public function notifyActionAction() { $params = array('payment_agent' => 'alipay', 'method' => 'notify_action', 'data' => $this->input); try { Hook::listen('process_payment', $event = new EventData($params)); if ($event->getData('result/0/error_code')) { throw new Exception(); } //$this->_ajaxReturn('success','200','EVAL'); echo "success"; } catch (Exception $e) { echo "fail"; } }