Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/Checkpoint 2026-10-22 12-09-37 UTC [6e9ef9f915].md
T
memrelay 550320cf18 create: Checkpoint 2026-10-22 12:09:37 UTC [6e9ef9f915]
MemRelay-Operation: checkpoint-save:rapdrama-checkpoint-proxy-20261022
MemRelay-Resource: 1e40a412-fd40-4169-81c0-8d04eb3987d0
2026-10-22 20:09:41 +08:00

26 lines
1.7 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-22 12:09:37 UTC [6e9ef9f915]
type: checkpoint
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/checkpoint-2026-10-22-12-09-37-utc-6e9ef9f915
stable_id: 1e40a412-fd40-4169-81c0-8d04eb3987d0
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-checkpoint-proxy-20261022
created_at: '2026-10-22T12:09:37.459674+00:00'
updated_at: '2026-10-22T12:09:37.459674+00:00'
tags:
- proxy
- dramabox
- handoff
---
完成:代理配置改为后台保存。cache/proxy.json 在进程启动时加载,GET/POST /api/proxy 读写同一份。页面启动先读这份配置,不再用空的「关闭」覆盖。
原因:桌面程序每次随机端口,localStorage 按端口分开,重启后代理丢失。没代理时 dramaboxapp.com 影片页 403,分集读不出来。
关键实现:server/services/http.py 读写 cache/proxy.json;server/routes/proxy.py 增加 GET;ui/src/App.vue 启动时 loadProxySettings。已把用户上次的 HTTP 127.0.0.1:7897 写回文件,并套到当前运行的 55072 进程。
验证:代理下泰语影片页 42000008326 返回 200 且含 __NEXT_DATA__。当前进程 POST /api/dramabox/play/episodes 返回 87 集且全部可播。新客户端读回代理的单元逻辑通过。ui 已构建,产物 index-BVFFBG2S.js。
下一步:用户重新打开那部剧应能看到分集。完全退出再进入后代理仍在。未提交。
给下个会话:不要把代理改回只存 localStorage。不要提交 cache/proxy.json、dist、凭证。登录窗恢复账号的 Rust 改动已编过,但这次没有再点登录窗验证。