Ver Fonte

Merge pull request #349 from XingHeYuZhuan/pending

fix: 修正获取教务的链接和参数
星河欲转 há 14 horas atrás
pai
commit
d0c6bfafa0
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      resources/QQHRU/qqhru.js

+ 2 - 2
resources/QQHRU/qqhru.js

@@ -67,10 +67,10 @@ async function fetchAndParseJwData(academicYear, semesterIndex) {
     try {
         const semesterValue = parseInt(semesterIndex) + 1; 
         const endYear = parseInt(academicYear) + 1;
-        const planCode = `${academicYear}-${endYear}-${semesterValue}-2`;
+        const planCode = `${academicYear}-${endYear}-${semesterValue}-1`;
 
         AndroidBridge.showToast("正在获取教务数据...");
-        const response = await fetch("http://111.43.36.164/student/courseSelect/thisSemesterCurriculum/DrIy44e731/ajaxStudentSchedule/curr/callback", {
+        const response = await fetch("http://111.43.36.164/student/courseSelect/thisSemesterCurriculum/396Yg00r50/ajaxStudentSchedule/past/callback", {
             "headers": { "content-type": "application/x-www-form-urlencoded; charset=UTF-8" },
             "body": `&planCode=${planCode}`,
             "method": "POST",