/** * 获得登录用户信息 * * @return PwUserBo */ public function getLoginUser() { if ($this->_loginUser === null) { $user = $this->_getLoginUser(); $user->ip = $this->clientIp; $this->_loginUser = $user->uid; PwUserBo::pushUser($user); } return PwUserBo::getInstance($this->_loginUser); }
/** * 获得登录用户信息 * * @return PwUserBo */ public function getLoginUser() { if ($this->_loginUser === null) { $user = $this->_getLoginUser(); $user->ip = Wind::getComponent('request')->getClientIp(); $this->_loginUser = $user->uid; PwUserBo::pushUser($user); } return PwUserBo::getInstance($this->_loginUser); }