request = $request; $this->_request = $this->request; $this->_param = $this->request->param(); $this->_token = $this->request->header("token"); $this->_autograph = $this->request->header("autograph"); $this->_uniacid = intval($this->request->param("i")); $this->_uniacid = $this->_uniacid ? $this->_uniacid : intval($this->request->param("uniacid")); if (empty($this->_uniacid) && longbingIsWeiqin()) { global $_GPC; global $_W; $this->_uniacid = $_W["uniacid"]; } if (empty($this->_uniacid)) { $user_info = getUserForToken($this->_token); $this->_uniacid = $user_info["uniacid"]; } } protected function getUserId() { $value = getCache($this->_autograph, $this->_uniacid); if ($value === false) { return 0; } return $value["id"]; } }