Browse Source

fix: 更新教务系统API

XingHeYuZhuan 2 weeks ago
parent
commit
12bde11fbd
2 changed files with 4 additions and 4 deletions
  1. 2 2
      resources/QQHRU/adapters.yaml
  2. 2 2
      resources/QQHRU/qqhru.js

+ 2 - 2
resources/QQHRU/adapters.yaml

@@ -4,6 +4,6 @@ adapters:
     adapter_name: "齐齐哈尔大学URP教务"
     category: "BACHELOR_AND_ASSOCIATE"
     asset_js_path: "qqhru.js"
-    import_url: "http://111.43.36.164/login"
+    import_url: "https://webvpn.qqhru.edu.cn/users/sign_in"
     maintainer: "星河欲转"
-    description: "齐齐哈尔大学URP教务,非本校开发者适配如果有误建议提交issues"
+    description: "齐齐哈尔大学URP教务,登录后只需要进入教务系统就可以点击导入了,非本校开发者适配如果有误建议提交issues"

+ 2 - 2
resources/QQHRU/qqhru.js

@@ -65,7 +65,7 @@ async function selectSemester() {
  */
 async function fetchValidApiUrl() {
     try {
-        const indexUrl = "http://111.43.36.164/student/courseSelect/calendarSemesterCurriculum/index";
+        const indexUrl = "https://172-20-139-153-7700.webvpn.qqhru.edu.cn/student/courseSelect/calendarSemesterCurriculum/index";
         const response = await fetch(indexUrl, { method: "GET", credentials: "include" });
         const htmlText = await response.text();
         
@@ -96,7 +96,7 @@ async function fetchAndParseJwData(academicYear, semesterIndex) {
         const planCode = `${academicYear}-${endYear}-${semesterValue}-1`;
 
         AndroidBridge.showToast("正在获取教务数据...");
-        const fullApiUrl = `http://111.43.36.164${targetApiSubUrl}`;
+        const fullApiUrl = `https://172-20-139-153-7700.webvpn.qqhru.edu.cn${targetApiSubUrl}`;
         const response = await fetch(fullApiUrl, {
             "headers": { "content-type": "application/x-www-form-urlencoded; charset=UTF-8" },
             "body": `&planCode=${planCode}`,