Пример #1
0
 public function getContactMessageAction()
 {
     $params = $this->getRequest()->getParams();
     $toKen = $params['toKen'];
     $userModel = new UserModel();
     $userInfo = $userModel->getUserInfoByToken($toKen);
     $messageListModel = new MessageListModel($userInfo['userId']);
     $respones = $messageListModel->getContactMessage(array('contactId' => 12, 'page' => 1, 'pageSize' => 10));
     $this->getResponse()->setBody(json_encode($respones));
 }
Пример #2
0
 /**
  * 获取往来消息
  * @return boolean
  */
 public function getContactMessageAction()
 {
     $messageListModel = new MessageListModel($this->userInfo['userId']);
     $result = $messageListModel->getContactMessage($this->requestParams);
     if ($messageListModel->getErrCode()) {
         $this->putError($messageListModel->getErrCode(), $messageListModel->getErrInfo());
         return false;
     }
     $this->response($result);
     return false;
 }