iTEST platform score query code

iTEST score query code and method:

*Students cannot see the answer directly after answering the questions on iTEST. They need to wait until the teacher announces it, but the code below can be presented to you immediately (without any impact).

*As shown:
Insert image description here

*Next, we only need to press F12, cut out the console, paste the following code in the console column, and press Enter, and the results will be displayed.
Insert image description here

**code show as below:
var x=new XMLHttpRequest;x.onreadystatechange=function(){if(4==x.readyState){var e=JSON.parse(this.responseText);e=e.rs.data,console.log(this.responseText);for(var t=0;t<e.length;t++){var r=0;console.info(e[t].ksName);for(var s=e[t].rateObjFinal.rateItems,a=0;a<s.length;a++)for(var o=s[a].rateScoreList,n=0;n<o.length;n++)r+=o[n].score;console.info(r/100)}}},x.open("POST","https://itestcloud.unipus.cn/utest/itest-mobile-api/student/exam/list",!0),x.send('{"curPage":1, "pageSize":5, "history":true}');

Then you’re done!

Guess you like

Origin blog.csdn.net/m0_74001916/article/details/128376226