Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面登录后显示个人信息.md
T
memrelay 612ac92d8b create: 桌面登录后显示个人信息
MemRelay-Operation: memory-save:rapt-login-profile-20260927
MemRelay-Resource: 866c509b-6ee3-4c79-aaab-620debf40e66
2026-09-27 00:22:09 +08:00

20 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 桌面登录后显示个人信息
type: fact
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面登录后显示个人信息
stable_id: 866c509b-6ee3-4c79-aaab-620debf40e66
scope: project
memory_type: fact
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: rapt-login-profile-20260927
created_at: '2026-09-26T16:22:05.815772+00:00'
updated_at: '2026-09-26T16:22:05.815772+00:00'
tags:
- desktop
- login
---
桌面登录接口在 server/main.py,开发时用 server/.venv 启动 uvicorn,监听 127.0.0.1:8788(避开 Swagger 的 8787)。四个接口:POST /api/login/guest、/api/login/password、/api/login/token、/api/login/adb,以及 POST /api/me 用已有 token 重读资料。都先拿 token,再调 POST /app/user/getUserInfo,返回 {token, profile};profile 里不含 token。Vite 把 /api 代理到 8788。页面在 ui/src/App.vue:未登录显示四种方式,登录后显示昵称、邮箱、用户 ID、徽章、VIP 天数、积分、观看、奖励、登录天数和绑定状态;token 只进 sessionStorage,不上屏。Tauri 尚未自动拉起 Python。