/** * 登录成功的返回信息 * @return array */ public function LoginContent() { return ['name' => $this->user->getName(), 'url' => $this->user->getUrl(), 'id' => $this->user->getId(), 'aliases' => $this->user->getAliases(), 'status' => $this->user->getStatus(), 'last_login_time' => $this->user->getLastLoginTime(), 'last_login_ip' => $this->user->getLastLoginIp(), 'avatar' => $this->user->getAvatar(), 'status_info' => $this->user->getStatusInfo($this->user->getStatus())]; }