Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/Life-USTC/CLI
go 1.26.0

require (
github.com/Life-USTC/client-core v0.5.0
github.com/Life-USTC/client-core v0.6.0
github.com/PuerkitoBio/goquery v1.13.0
github.com/charmbracelet/bubbles v1.0.0
github.com/charmbracelet/bubbletea v1.3.10
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Life-USTC/client-core v0.5.0 h1:TkSp/rP5V5rastpV8BtbTwR7IlwKh1b7++430Ccf3QQ=
github.com/Life-USTC/client-core v0.5.0/go.mod h1:2SgYKZ3hbEFEigNGPdbfFS2m149evVw2t/mEjA/S/LM=
github.com/Life-USTC/client-core v0.6.0 h1:SSr9J+RRm2DKZfcUrGZTmaarlaZ4akY/Ae5WtYkCHY8=
github.com/Life-USTC/client-core v0.6.0/go.mod h1:Cnvr4pdLI5T0waJ5oQevw35j+zd5NcdqZ52MMNqAn1k=
github.com/PuerkitoBio/goquery v1.13.0 h1:mqHbjD7Jmnul4DTR24LKTjo1uUmHUh072kteGV+xpFM=
github.com/PuerkitoBio/goquery v1.13.0/go.mod h1:Hip5mdBL8K2wEGKJdr27sRaNwIdDajmCwB/ExUPwW+g=
github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk=
Expand Down
7 changes: 4 additions & 3 deletions internal/school/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"strings"
"time"

"github.com/Life-USTC/client-core/ustc"
"github.com/PuerkitoBio/goquery"
)

Expand Down Expand Up @@ -51,14 +52,14 @@ func newJWClient(ctx context.Context, creds Credentials) (*http.Client, error) {
func newBlackboardClient(ctx context.Context, creds Credentials) (*http.Client, error) {
return newAuthenticatedClientForTargets(ctx, creds, []loginTarget{
{
loginURL: bbNginxAuthLoginURL(bbCalendarPageURL),
loginURL: bbNginxAuthLoginURL(ustc.BlackboardCalendarPageURL),
expectedHost: "www.bb.ustc.edu.cn",
postLoginURLs: []string{bbCalendarPageURL},
postLoginURLs: []string{ustc.BlackboardCalendarPageURL},
},
{
loginURL: bbLoginURL,
expectedHost: "www.bb.ustc.edu.cn",
postLoginURLs: []string{bbCalendarPageURL, bbCalendarListURL},
postLoginURLs: []string{ustc.BlackboardCalendarPageURL, ustc.BlackboardCalendarsURL},
},
})
}
Expand Down
Loading
Loading