Greasy Fork 支持简体中文。
实现自动挂机看视频,作业自动做题/共享答案功能
< 腳本优课在线辅助脚本的回應
这个接口建议修改一下// 获取课程列表 UoocAutoLearn.homeworkList = function () { console.log('homeworkList'); $.ajax({ type: "GET", //url: '/home/task/homeworkList', //zhy修改//http://uooc.net.cn/home/task/testList?cid= url: '/home/task/testList',//zhy修改 data: { cid: this.cid, page: 1, pagesize: 20 }, success: function (response) { for (let index = 0; index < response.data.data.length; index++) { const element = response.data.data[index]; // 判断是否批改 if (element.status_code == "20") { // 提交答案到服务器 UoocAutoLearn.examView(UoocAutoLearn.cid, element.id) } } } }); }
登入以回復
这个接口建议修改一下
// 获取课程列表
UoocAutoLearn.homeworkList = function () {
console.log('homeworkList');
$.ajax({
type: "GET",
//url: '/home/task/homeworkList',
//zhy修改//http://uooc.net.cn/home/task/testList?cid=
url: '/home/task/testList',//zhy修改
data: {
cid: this.cid,
page: 1,
pagesize: 20
},
success: function (response) {
for (let index = 0; index < response.data.data.length; index++) {
const element = response.data.data[index];
// 判断是否批改
if (element.status_code == "20") {
// 提交答案到服务器
UoocAutoLearn.examView(UoocAutoLearn.cid, element.id)
}
}
}
});
}