感悟

  • flash 的故事 还等继续
  • IE 也是个必需品
  • Win 还是得有
  • 常用编码还是得一眼可以看出

不过 当成功的那一刻 真的体验是很不一样的

分析

GET education/Student-MyResource 课程列表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$(function(){
// 完成课程ID 学完后会变成绿色
var coursewareIdsArr=[6851, 6852];
setTimeout(function(){
var courseware=$(".movie").children("a");
$.each(coursewareIdsArr,function(i,o){
$.each(courseware,function(ii,oo){
if(oo.id=="courseware_"+o){
$(oo).css("color","green");
}
})
});
},1000)
})

POST /education/FindStudentLessonCourseWare 课程详情

请求

1
%7BcourseID%3A3544%2CcourseWareID%3A6851%2CidentityID%3A0%7D
1
{courseID:3544,courseWareID:6851,identityID:0}

响应

1
{"courseID":null,"courseName":null,"courseWareID":null,"courseWareName":null,"historyUrl":null,"message":"success","personStudyInfo":null,"rows":[{"courseID":3544,"courseNO":"","courseName":"","courseTime":39.00,"courseWareID":6851,"courseWareName":"","id":506913,"identityID":2,"insID":130,"isFinish":0,"lessonLocation":0.00,"personID":1977634295,"planID":0,"sessionTime":0,"startDT":"2020-07-31 13:18:00","studyPersonNum":545,"studyStatue":"completed","studyTime":60.45,"studyTimeBak":0,"text":"","validIdentityID":"","validOrganID":""}],"sysPerson":null,"total":1}

主要字段

  • studyStatue string 学习状态 有两值 completed 完成 incomplete 学习中
  • studyTime number 已有时间
  • courseTime number 有效时间

POST /education/EditStudentLessonCourseWare 更新学习进度

请求

headers

keyvalue
Content-Typeapplication/x-www-form-urlencoded
CookieGSESSIONID HWWAFSESID HWWAFSESTIME

bodys

keyvalue
jsonStringvalue
  • jsonString
1
%7BcourseID%3A3544%2CcourseName%3A%22%22%2CcourseNO%3A%22%22%2CcourseWareID%3A6852%2CcourseWareName%3A%22%22%2CstudyTime%3A60%2CsessionTime%3A4%2CcourseTime%3A41%2CstudyStatue%3A%22completed%22%2ClessonLocation%3A0%2CidentityID%3A0%2CisFinish%3A1%2CstartDT%3A%222020-07-31+13%3A02%3A34%22%7D
1
{courseID:3544,courseName:"",courseNO:"",courseWareID:6852,courseWareName:"",studyTime:60,sessionTime:4,courseTime:41,studyStatue:"completed",lessonLocation:0,identityID:0,isFinish:1,startDT:"2020-07-31 13:02:34"}

同上 主要字段

貌似 studyTime 不能超过 999

GET /education/updateStuInfo 更新备用学习时间 作用未知

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//异步请求更新备用学习时间
function updateStuInfo(time){
$.ajax({
type:"get",
url:"/education/updateStuInfo",
data:{studyTimeBak:time,courseID:3544},
dataType:"json",
success:function(data){
}
});
}

stuTimeStart=new Date().getTime();
//eclipse编译
setInterval(function() {
updateStuInfo(stuTimeStart);
stuTimeStart=new Date().getTime();
}, 600000);

这时间是一小时一次 不过如果点击结束 也会更新一次