Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/Checkpoint 2026-10-23 18-15-25 UTC [c6463c355a].md
T
memrelay ec80800521 create: Checkpoint 2026-10-23 18:15:25 UTC [c6463c355a]
MemRelay-Operation: checkpoint-save:rapdrama-dbx-guest-ckpt-20261024-03
MemRelay-Resource: 8e2a1492-9c41-43d5-9f37-0055cc21f312
2026-10-24 02:15:28 +08:00

27 lines
2.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: Checkpoint 2026-10-23 18:15:25 UTC [c6463c355a]
type: checkpoint
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/checkpoint-2026-10-23-18-15-25-utc-c6463c355a
stable_id: 8e2a1492-9c41-43d5-9f37-0055cc21f312
scope: project
memory_type: checkpoint
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: rapdrama-dbx-guest-ckpt-20261024-03
created_at: '2026-10-23T18:15:25.305487+00:00'
updated_at: '2026-10-23T18:15:25.305487+00:00'
tags:
- dramabox
- guest
- handoff
---
完成:可以自己生成新设备参数,模拟 App 初次打开拿到一套非当前账号、非 VIP 的访客凭据。
原因:上次判定“参数非法、无法另造身份”不成立。App 的 android-id 是 AbstractC1647e.d() 生成的 32 位十六进制(UUID 去横线),device-id 是 GAID UUID;用这对新 ID 调 ap001/bootstrap(distinctId + installTime)会返回另一套 token/uid,isVip=0。沿用已绑定设备的那对 ID、即使不带 tn,仍会回到当前账号。
关键实现:server/services/dramabox/app_api.py 的 new_device/create_guest/ensure_guest/browse_app。guest 写入 cache/dramabox/session.json。目录、搜索、chapterv2/list、免费 batch/load 走 guest;收费集 batchDownload 走从设备导入的 app。失败回退到 app。
验证:合成身份 bootstrap status 0、uid 与设备账号不同、isVip=0。guest 拉 theater 7 个频道;剧 42000028209 分集 54(14 免费/40 收费),免费窗口 5 集可播。tests/test_dramabox.py 通过。未提交。
问题:桌面程序 uvicorn 没有 --reload,必须完全退出再打开才会用新 Python。旧进程若再写 session.json 可能丢掉 guest 字段,重启后 ensure_guest 会再造一次。
下一步:完全退出桌面程序再打开,从设备进入 DramaBox,刷新清单。普通浏览不应再打 VIP 令牌。
给下个会话:不要提交 cache、session、dist、探针、APK、LicenseKey。不要在聊天里打出令牌或设备号。不要用已绑定的 device-id/android-id 去造访客。访客 cid/nchid 用 CODE00001。Python 改动要整进程重启。分类 120 页上限仍在。