Files
MemRelay/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/Checkpoint 2026-11-14 17-03-03 UTC [3f2a1bb4d6].md
T
memrelay b1dcf7d280 create: Checkpoint 2026-11-14 17:03:03 UTC [3f2a1bb4d6]
MemRelay-Operation: checkpoint-save:ckpt-autostudy-20261115
MemRelay-Resource: 59b7140e-def6-4a1c-b38c-945e1d8751ca
2026-11-15 01:03:07 +08:00

39 lines
1.5 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-14 17:03:03 UTC [3f2a1bb4d6]
type: checkpoint
permalink: main/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/checkpoint-2026-11-14-17-03-03-utc-3f2a1bb4d6
stable_id: 59b7140e-def6-4a1c-b38c-945e1d8751ca
scope: project
memory_type: checkpoint
project_id: f5708b07-f0ea-42a4-b4ed-0e5443990ff9
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: ckpt-autostudy-20261115
created_at: '2026-11-14T17:03:03.447555+00:00'
updated_at: '2026-11-14T17:03:03.447555+00:00'
---
## 完成
自动学习功能完整实现并提交推送。
## 关键实现
- 迁移 0007: accounts 加 monthly_target,system_config 加心跳间隔配置
- admin/settings.py: heartbeat_intervals() 读取心跳配置
- SettingsView.vue: 心跳间隔配置区,auto/manual 切换
- client.py: course_page_params, update_progress, sync_package, get_encrypt_request, submit_video/document/scorm_heartbeat, scorm_count/get/save, scorm_page_files, scorm_extract_answers
- autostudy.py: Worker 主循环,遍历有效用户逐门课程发心跳,支持视频/文档/Scorm/课程包
- api.py: monthly-target GET/PUT, autostudy/status GET
- HomeView.vue: 每月目标设置 + 状态指示灯
## 验证
30 测试通过,前端构建成功,迁移执行成功,已推送。
## 下一步
登录确认 UI 和 Worker 行为。
## 给下个会话
- 服务 127.0.0.1:8000
- Worker 10秒后开始,每轮间隔 5-10 分钟
- Scorm MD5 key 写死在 _SCORM_MD5_KEY
- 课程表需先在管理后台加载