Files
MemRelay/projects/a84c6646-289e-46f8-b0f9-41317c651955/Checkpoint 2026-11-06 09-49-20 UTC [2ed2531bed].md
T
memrelay de9079945c create: Checkpoint 2026-11-06 09:49:20 UTC [2ed2531bed]
MemRelay-Operation: checkpoint-save:punchlog-checkpoint-20261106-tool-done
MemRelay-Resource: 651e0cd7-edf3-472f-911d-539b80db6eb0
2026-11-06 17:49:24 +08:00

40 lines
2.3 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-11-06 09:49:20 UTC [2ed2531bed]
type: checkpoint
permalink: main/projects/a84c6646-289e-46f8-b0f9-41317c651955/checkpoint-2026-11-06-09-49-20-utc-2ed2531bed
stable_id: 651e0cd7-edf3-472f-911d-539b80db6eb0
scope: project
memory_type: checkpoint
project_id: a84c6646-289e-46f8-b0f9-41317c651955
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: punchlog-checkpoint-20261106-tool-done
created_at: '2026-11-06T09:49:20.197093+00:00'
updated_at: '2026-11-06T09:49:20.197093+00:00'
tags:
- progress
- handoff
---
== 已完成 ==
打卡工具核心功能全部完成并用真实数据验证通过(本地已 commit 87af63a,未推远程):
- src/punchlog/msa.py:纯 Python MSA(RSA+AES) 加解密,已验证。
- src/punchlog/iepms.py:IepmsClient.list_my/fetch_all,仅靠 token 分页拉全部记录(实测 10/1今拉到 46 条,无需 signature/Cookie)。
- src/punchlog/analyze.py:按天最早/最晚、缺卡判定(<2次 或 <8h)、今日状态。
- src/punchlog/cli.py + __main__.py:python -m punchlog [--month/--start/--end/--csv],输出表格+今日提醒+缺卡统计+CSV。实测:10月正确标记 10-16 缺卡;今日 11-06 只打一次正确提醒缺卡。
- src/punchlog/config.py:从 .env 读配置。
- tools/extract_token.py:从 flows.jsonl 提取最新 token,已测通。
- pyproject.toml / .env.example / .gitignore(排除 .env、data/、reverse/、csv)。
== 关键结论 ==
listMy 不校验签名;token 长效;纯 Python 从零登录被 EMM 设备绑定拦截(100301)。详见已存的 decision 记忆。
== 未完成/下一步(需用户拍板)==
唯一未定:token 日常如何获取。当前 .env 里是抓包得到的长效 token(已验证有效)。选项:(A)靠手机偶尔抓包刷新 token(实用,已就绪);(B)继续攀设备绑定实现真正无手机登录(难,需设备侧密码学证明)。用户曾表达过“无需手机”偏好但也承认设备绑定。
可选增强:longitude/latitude 解密(如需定位);xlsx 导出;定时自动提醒。
== 踩坑提醒 ==
- 凭证(账号/密码)和 token 只在 .env(已 gitignore),绝不写入记忆/不提交。
- 未经用户确认不推送远程。
- 测试脚本放在 C:\Users\Administrator\AppData\Local\Temp\,不入仓。