Ejemplo n.º 1
0
 function getOrderResultAction()
 {
     $request = $this->getRequest();
     if ('POST' == $request->getMethod()) {
         $transNo = $this->post()->get("transNo");
         $userId = $this->post()->get("userId");
     } else {
         $transNo = $this->get("transNo");
         $userId = $this->get("userId");
     }
     //接收参数判断
     if (!$transNo || !$userId) {
         $this->displayJsonUdo(Common_Error::ERROR_PARAM, "", "缺少必选参数");
     }
     $accountModel = new AccountModel();
     $result = $accountModel->getOrderResult($userId, $transNo);
     $this->displayJsonUdo(Common_Error::ERROR_SUCCESS, array("result" => $result));
 }