public function inBoxAction() { $params = $this->getRequest()->getParams(); $toKen = $params['toKen']; $userModel = new UserModel(); $userInfo = $userModel->getUserInfoByToken($toKen); $messageListModel = new MessageListModel(12); $respones = $messageListModel->inBox(array('page' => 1, 'pageSize' => 10)); $this->getResponse()->setBody(json_encode($respones)); }
/** * 收件箱 * @return boolean */ public function inBoxAction() { $messageListModel = new MessageListModel($this->userInfo['userId']); $result = $messageListModel->inBox($this->requestParams); if ($messageListModel->getErrCode()) { $this->putError($messageListModel->getErrCode(), $messageListModel->getErrInfo()); return false; } $this->response($result); return false; }