规范化 URL,登录页返回 404 时自动尝试 /jwglxt/。
改用当前有效的 DgXscj 成绩接口。 同步更新配置说明。
This commit is contained in:
@@ -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不为空,跳出循环
|
||||
|
||||
Reference in New Issue
Block a user