Skip to content

Commit ae3002c

Browse files
committed
fix: 修复 WebVPN 模式下无法进入教务系统的问题
1 parent 112f574 commit ae3002c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

catch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (a *App) CatchCoursePub(
113113
})
114114
// 点击 "教务管理系统"
115115
page.Evaluate(`() => {
116-
const items = document.querySelectorAll('#common_div > ul > li > div.text-box')
116+
const items = document.querySelectorAll('#recently_div > ul > li > div.text-box')
117117
for (const item of items) {
118118
if (item.textContent?.includes('教务管理系统')) {
119119
item.parentElement?.click()
@@ -364,7 +364,7 @@ func (a *App) CatchCourseMaj(
364364
})
365365
// 点击 "教务管理系统"
366366
page.Evaluate(`() => {
367-
const items = document.querySelectorAll('#common_div > ul > li > div.text-box')
367+
const items = document.querySelectorAll('#recently_div > ul > li > div.text-box')
368368
for (const item of items) {
369369
if (item.textContent?.includes('教务管理系统')) {
370370
item.parentElement?.click()

watch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (a *App) watchCoursePubCore(
185185
})
186186
// 点击 "教务管理系统"
187187
page.Evaluate(`() => {
188-
const items = document.querySelectorAll('#common_div > ul > li > div.text-box')
188+
const items = document.querySelectorAll('#recently_div > ul > li > div.text-box')
189189
for (const item of items) {
190190
if (item.textContent?.includes('教务管理系统')) {
191191
item.parentElement?.click()
@@ -432,7 +432,7 @@ func (a *App) watchCoursePubSyncCore(
432432
})
433433
// 点击 "教务管理系统"
434434
page.Evaluate(`() => {
435-
const items = document.querySelectorAll('#common_div > ul > li > div.text-box')
435+
const items = document.querySelectorAll('#recently_div > ul > li > div.text-box')
436436
for (const item of items) {
437437
if (item.textContent?.includes('教务管理系统')) {
438438
item.parentElement?.click()
@@ -672,7 +672,7 @@ func (a *App) watchCourseMajCore(
672672
})
673673
// 点击 "教务管理系统"
674674
page.Evaluate(`() => {
675-
const items = document.querySelectorAll('#common_div > ul > li > div.text-box')
675+
const items = document.querySelectorAll('#recently_div > ul > li > div.text-box')
676676
for (const item of items) {
677677
if (item.textContent?.includes('教务管理系统')) {
678678
item.parentElement?.click()

0 commit comments

Comments
 (0)