Implement Redis CHIS session store

This commit is contained in:
ila
2026-07-05 11:35:59 +08:00
parent 83c1100aa8
commit 32037a04e1
12 changed files with 216 additions and 16 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
- 依赖管理:T-001 创建 `requirements.txt`,使用 `python -m pip install -r requirements.txt` 安装到当前系统 Python 3.8 环境。
- 测试入口:T-003 固定 `pytest==8.3.5`,使用 `python -m pytest`。
- CHIS 登录:T-101 已迁移登录基础链路到 `app/chis/auth.py`,SM2 加密在 `app/chis/crypto.py`。
- 计划使用 Redis 保存 CHIS 会话缓存。
- Redis 会话缓存:T-103 已实现 `RedisChisSessionStore`,使用 `redis==3.5.3` 保存 CHIS 会话对象。
- 访问 CHIS 支持可选 `CHIS_PROXY`:为空直连,有值时 CHIS 登录、查询和保存请求走 SOCKS5 代理。
- 当前已有资料:`reverse_file/` 下的 CHIS 前端脚本、schema 和 HAR。
- 当前已有查询 HAR:`reverse_file/20260704_query_health_check.har`,包含 `getHMNIListOfHTML` 和 `getCheckInfoDetail`。