Files
yun-xue-tang-assistant/.env.example
T
void 17217dbeb1 feat: 考试结果页去重与跳课,构建镜像脚本支持国内换源
考试:
- 新增 src/exam-plan.js(纯函数)判定结果页处置:只有本页确实点过
  「提交考试/确定交卷」才算一次空卷交卷,平台恢复的旧结果页先回
  「考试说明页」重进,不再在结果页和课程页之间空转
- 重试也不会好的确定性失败(交卷次数到上限、说明页无「开始考试」、
  答卷页无「提交考试」、结果页反复回退)改为本轮跳过该课继续下一门,
  记录在 S.skippedCourses(sessionStorage),不会停下整轮刷课
- 新一轮开跑时清空 skippedCourses / examEmptySubmits,人工处理后可重试
- 补 dev/tests/exam-test.mjs(npm run test:exam,5 条用例)

构建:
- 新增 scripts/build-docker.mjs/.cmd/.sh(npm run docker:build):
  国内换源、按包版本打标签、构建后自检、--dry-run
- Dockerfile 增加 APT_MIRROR / NPM_REGISTRY 构建参数,
  docker-compose.yml 透传三个 build args,.env.example 补说明
2026-10-29 21:31:45 +08:00

20 lines
810 B
Bash
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.
# 复制成 .env 后填自己的账号密码(.env 已在 .gitignore 里,不会入库)
# 凭据只认这两个变量,不能写进 config/runner.config.mjs
YUN_XUE_TANG_USR=
YUN_XUE_TANG_PWD=
# 本次最多完成几门课(docker compose 用;0 / 留空 = 不限)
YUN_XUE_TANG_MAX_COURSES=100
# 时区,影响日志时间戳
TZ=Asia/Shanghai
# ---- 以下三个只在构建镜像时用(docker compose build / npm run docker:build)----
# Debian 源地址:国内建议 mirrors.tuna.tsinghua.edu.cn,留空 = 保持 deb.debian.org
APT_MIRROR=
# npm 源地址:国内建议 https://registry.npmmirror.com,留空 = 官方源
NPM_REGISTRY=
# Chrome deb 直链:国内常常下不动 dl.google.com,填自己的内网镜像地址;
# 留空 = 按架构自动取官网地址
CHROME_DEB_URL=