Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面登录后显示个人信息.md
T
memrelay a33c40d48c update: 桌面登录后显示个人信息
MemRelay-Operation: memory-save:rapt-adb-device-list-merge-20260927
MemRelay-Resource: 866c509b-6ee3-4c79-aaab-620debf40e66
2026-09-27 00:28:51 +08:00

21 lines
1.5 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: 4
request_id: rapt-adb-device-list-merge-20260927
created_at: '2026-09-26T16:22:05.815772+00:00'
updated_at: '2026-09-26T16:28:48.749762+00:00'
tags:
- desktop
- login
- adb
---
桌面登录接口在 server/main.py,默认端口 8798(DEFAULT_PORT)。Swagger 仍在 8787。端口如何选择尚未定,先固定 8798。接口:POST /api/login/guest、/api/login/password、/api/login/token、/api/login/adb,POST /api/me 重读资料,GET /api/adb/devices 列设备。登录后先拿 token,再调 getUserInfo,返回 {token, profile},profile 不含 token。Vite 把 /api 代理到 8798。页面 ui/src/App.vue:四种登录;成功后显示昵称、邮箱、用户 ID、徽章、VIP 天数、积分、观看、奖励、登录天数和绑定状态。token 只进 sessionStorage。ADB 打开时自动列出已连接设备,选项为「型号 · 设备 ID · 已 root/未 root」,未授权和离线不能选,只有一台就绪设备时自动选中,并有刷新按钮。提示:从已 root 的设备读取当前登录账号。未 root 的设备无法获取登录信息。列表用 adb devices -l 读型号,用 id / su 判断 root,列表时不执行 adb root。Tauri 尚未自动拉起 Python。