Example #1
0
 /**
  * 用户喜欢一个事件
  *
  * @access public
  * @param int eventId
  * @return void
  */
 public function likeEvent()
 {
     $this->checkAccessToken();
     $this->params = $this->require_params(array('eventId'));
     $this->userModel->likeEvent($GLOBALS['userId'], $this->params['eventId']);
     $this->returnData = $this->userModel->get($GLOBALS['userId']);
     $this->userLog($GLOBALS['userId'], __CLASS__ . '/' . __FUNCTION__, serialize($this->params));
     F::rest()->show_result($this->returnData[0]['nickname']);
 }