规范化 URL,登录页返回 404 时自动尝试 /jwglxt/。

改用当前有效的 DgXscj 成绩接口。
同步更新配置说明。
This commit is contained in:
2026-07-27 19:19:02 +08:00 Unverified
parent 9e7b7e6fe1
commit 7441a9ff7e
3 changed files with 17 additions and 8 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ def get_grade(student_client, output_type="none"):
while attempts > 0:
# 调用student_client的get_grade方法获取成绩信息
grade_data = student_client.get_grade().get("data", {})
# 学生成绩查询目前使用 cjcx_cxDgXscj 接口
grade_data = student_client.get_grade(use_personal_info=True).get("data", {})
grade = grade_data.get("courses", [])
# 如果grade不为空,跳出循环