diff --git a/projects/a84c6646-289e-46f8-b0f9-41317c651955/PunchLog 待做:token 保活服务(未来).md b/projects/a84c6646-289e-46f8-b0f9-41317c651955/PunchLog 待做:token 保活服务(未来).md new file mode 100644 index 0000000..4326755 --- /dev/null +++ b/projects/a84c6646-289e-46f8-b0f9-41317c651955/PunchLog 待做:token 保活服务(未来).md @@ -0,0 +1,24 @@ +--- +title: PunchLog 待做:token 保活服务(未来) +type: task_list +permalink: main/projects/a84c6646-289e-46f8-b0f9-41317c651955/punch-log-待做-token-保活服务未来 +stable_id: 4e5c136e-bddc-4d9f-80d3-544cb26ef558 +scope: project +memory_type: task_list +project_id: a84c6646-289e-46f8-b0f9-41317c651955 +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: punchlog-task-token-keepalive-20261106 +created_at: '2026-11-06T10:01:09.624825+00:00' +updated_at: '2026-11-06T10:01:09.624825+00:00' +tags: +- token +- keepalive +- todo +--- + +用户决定(当前不实现,仅记录): +- token 日常:先靠手机偶尔抓包刷新(tools/extract_token.py)。 +- 未来计划:做一个持续运行的服务,按随机间隔(5–120 分钟随机)定时调用接口来保持凭据(token)有效,避免失效。 +- 实现时可用一个轻量心跳请求(如 listMy 或其他只需 token 的 GET)刷新会话;注意别让间隔固定,用随机间隔。token 本身长效,但持续保活可进一步防止长时间闲置过期。 \ No newline at end of file