Пример #1
0
 function getResource1Action()
 {
     $request = $this->getRequest();
     if ('POST' == $request->getMethod()) {
         $userId = $this->post()->get("userId");
         $domainId = $this->post()->get("domainId");
     } else {
         $userId = $this->get("userId");
         $domainId = $this->get("domainId");
     }
     if (!$userId || !$domainId) {
         $this->displayJsonUdo(Common_Error::ERROR_PARAM);
     }
     $tradeModel = new TradeModel();
     $result = $tradeModel->getPrice1($userId, $domainId);
     //print_r($result);
     $this->displayJsonUdo(Common_Error::ERROR_SUCCESS, $result);
 }