create: 学时达标依据可选接口或历史统计

MemRelay-Operation: memory-save:euniv-hours-source-20261115
MemRelay-Resource: 4b335048-1cfa-48d2-af04-ff44cf901cf3
This commit is contained in:
2026-11-15 05:13:36 +08:00
parent f1935fdb4d
commit 451bd73707
@@ -0,0 +1,20 @@
---
title: 学时达标依据可选接口或历史统计
type: decision
permalink: main/projects/f5708b07-f0ea-42a4-b4ed-0e5443990ff9/学时达标依据可选接口或历史统计
stable_id: 4b335048-1cfa-48d2-af04-ff44cf901cf3
scope: project
memory_type: decision
project_id: f5708b07-f0ea-42a4-b4ed-0e5443990ff9
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: euniv-hours-source-20261115
created_at: '2026-11-14T21:13:32.917376+00:00'
updated_at: '2026-11-14T21:13:32.917376+00:00'
tags:
- autostudy
- hours
---
system_config.hours_source 为 api 或 history,默认 api。api 用 myperiod.htm 的本月学时;history 用学时历史 REST 倒序分页(pageSize 100)累加本月分钟,遇到上个月即停,不一次拉全量。history 模式下周期预筛选跳过 month_hours,由 HoursWatcher.refresh 判断。HTML 首页只作 REST 失败的最后回退。