ZjuKunk Lv1

浙江大学教务网成绩查看相关API的解析

特别提醒,由于转到mrakdown的过程中似乎出现了结构有些许的失调,所以暂时不删除之前的文档,请注意结合最后的样例进行查看。(主要是item下的包含关系较为复杂,建议结合样例看看)

能力有限,抱歉


1. 调用接口

1
http://zdbk.zju.edu.cn/jwglxt/cxdy/xscjcx_cxXscjIndex.html?doType=query&gnmkdm=N5083&su=用户学号
  • gnmkdm:功能模块代码,保持N5083不变即可。
  • dotype : 猜测为页面显示的方式,填query即可
  • su:学生的学号。

同时,需要用POST传递如下的表单数据:

变量名 含义 内容参考
xn 学年 学年,缺省为全部(ALL)
xq 学期 学期,缺省为全部(ALL)
zscjl 成绩段最小值 1
zscjr 成绩段最大值 100
search 不知道 普遍false
nd 编号 相同的请求都是不同的,猜测为编号,不影响使用
queryModel.showCount 每页展示的条数 15
queryModel.currentPage 当前页面 1
queryModel.sortName 排序方式 xkkh
queryModel.sortOrder 排序顺序 asc(猜测为正序倒序)
time 发起请求的次数 不影响使用

2. 返回内容

返回内容为一个JSON文档,下文中仅对预计有用的变量进行了标注,一些与页面显示相关的变量就先行忽略了。

  • currentPage: 1 // 表格相关(当前页面)
  • currentResult: 0 // 表格相关(当前结果)
  • entityOrField: false // 表格相关(略)
  • items:
    • - "cj": "92" // 成绩
    • - "completeAnswer": true
    • - "jd": "4.8" // 绩点
    • - "jgpxzd": "1" // 在多个页面出现且值均为一,暂未破译
    • - "kcmc": "中国改革开放史" // 课程名称
    • - "listnav": "false" // 应该是表格相关
    • - "localeKey": "zh_CN" // 表格相关(略)
    • - "pageable": true // 表格相关(略)
    • - "queryModel" // 表格相关(略)
      • - "currentPage": 1
      • - "currentResult": 0
      • - "entityOrField": false
      • - "limit": 15
      • - "offset": 0
      • - "pageNo": 0
      • - "pageSize": 15
      • - "showCount": 10
      • - "sorts": []
      • - "totalCount": 0
      • - "totalPage": 0
      • - "totalResult": 0
    • - "rangeable": true // 表格相关(略)
    • - "row_id": "1" // 表格相关(略)
    • - "totalResult": "2" // 表格相关(略)
    • - "userModel" // 表格相关(略)
      • - "monitor": false
      • - "roleCount": 0
      • - "roleKeys": ""
      • - "roleValues": ""
      • - "status": 0
      • - "usable": false
    • - "xf": "1.5" // 学分
    • - "xkkh": "(2024-2025-1)-011E0010-0004210-1" // 选课课号(具体和之前的内容是一样的)
  • limit: 15
  • offset: 0
  • pageNo: 0
  • pageSize: 15
  • showCount: 15
  • sortName: “xkkh” // 列名称
  • sortOrder: “asc”
  • sorts: []
  • totalCount: 2
  • totalPage: 1
  • totalResult: 2

以上就是对教务网成绩系统的基本拆解,希望能对后续开发有所帮助。


PS. 返回文件示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"currentPage": 1,
"currentResult": 0,
"entityOrField": false,
"items": [
{
"cj": "92",
"completeAnswer": true,
"jd": "4.8",
"jgpxzd": "1",
"kcmc": "中国改革开放史",
"listnav": "false",
"localeKey": "zh_CN",
"pageable": true,
"queryModel": {
"currentPage": 1,
"currentResult": 0,
"entityOrField": false,
"limit": 15,
"offset": 0,
"pageNo": 0,
"pageSize": 15,
"showCount": 10,
"sorts": [],
"totalCount": 0,
"totalPage": 0,
"totalResult": 0
},
"rangeable": true,
"row_id": "1",
"totalResult": "2",
"userModel": {
"monitor": false,
"roleCount": 0,
"roleKeys": "",
"roleValues": "",
"status": 0,
"usable": false
},
"xf": "1.5",
"xkkh": "(2024-2025-1)-011E0010-0004210-1"
},
{
"cj": "87",
"completeAnswer": true,
"jd": "4.2",
"jgpxzd": "1",
"kcmc": "军训",
"listnav": "false",
"localeKey": "zh_CN",
"pageable": true,
"queryModel": {
"currentPage": 1,
"currentResult": 0,
"entityOrField": false,
"limit": 15,
"offset": 0,
"pageNo": 0,
"pageSize": 15,
"showCount": 10,
"sorts": [],
"totalCount": 0,
"totalPage": 0,
"totalResult": 0
},
"rangeable": true,
"row_id": "2",
"totalResult": "2",
"userModel": {
"monitor": false,
"roleCount": 0,
"roleKeys": "",
"roleValues": "",
"status": 0,
"usable": false
},
"xf": "2.0",
"xkkh": "(2024-2025-1)-ADMN1001G-0024759-1"
}
],
"limit": 15,
"offset": 0,
"pageNo": 0,
"pageSize": 15,
"showCount": 15,
"sortName": "xkkh",
"sortOrder": "asc",
"sorts": [],
"totalCount": 2,
"totalPage": 1,
"totalResult": 2
}
  • 标题:
  • 作者: ZjuKunk
  • 创建于 : 2025-01-01 00:46:33
  • 更新于 : 2024-12-02 12:09:08
  • 链接: https://zjukunk.github.com/2025/01/01/教务网成绩查看from kk/
  • 版权声明: 版权所有 © ZjuKunk,禁止转载。
评论