Files
study-tool/start.bat
T
study-tool 585a7a28dd feat: study modes (fast/parallel) and course-container completion fix
- settings: study.mode fast|normal and study.parallel 1-5

- normal mode: one headless browser per video, visibility keep-alive, auto-degrade when the platform enforces order

- report study/log/detail/save before isComplete; drop lastProgressTime on completion

- complete periodType 10/13 container nodes and recompute counters via PUT calFinalScore

- capture mode: POST /api/capture records all XHR/fetch including new tabs

- UI: study mode in settings, capture / stop-capture menu items
2026-10-27 22:30:57 +08:00

40 lines
947 B
Batchfile

@echo off
chcp 65001 >nul
title 多账号学习控制台 · 东莞市教师培训平台
cd /d "%~dp0"
echo ============================================
echo 多账号学习控制台 jspx.dgjy.net
echo ============================================
echo.
where python >nul 2>nul
if errorlevel 1 (
echo [错误] 未找到 python,请先安装 Python 3.10+ 并加入 PATH
pause
exit /b 1
)
where node >nul 2>nul
if errorlevel 1 (
if not exist "%NODE_BIN%" (
echo [警告] 未在 PATH 中找到 node。若登录报错,请设置环境变量 NODE_BIN 指向 node.exe
)
)
python -c "import fastapi, uvicorn, requests, bs4" >nul 2>nul
if errorlevel 1 (
echo [安装依赖] fastapi uvicorn requests beautifulsoup4 lxml
python -m pip install -r requirements.txt
)
echo.
echo 启动中... 浏览器请打开: http://127.0.0.1:8848
echo 关闭本窗口即停止服务。
echo.
start "" http://127.0.0.1:8848
python app.py
pause