Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuxia211 authored Dec 7, 2024
2 parents 7634cfb + f2e64dc commit e9d8e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions errno/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var (
SSOLoginFailedError = NewErrNo(AuthorizationFailedErrCode, "sso login failed")
GetCookieFailedError = NewErrNo(AuthorizationFailedErrCode, "get cookie failed")


// HTTP
HTTPQueryError = NewErrNo(HTTPQueryErrorCode, "HTTP query failed")
HTMLParseError = NewErrNo(HTTPQueryErrorCode, "HTML parse failed")
Expand Down
2 changes: 1 addition & 1 deletion user.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (s *Student) Login() error {
data := regexp.MustCompile(`id=(.*?)&`).FindStringSubmatch(err.Error())

if len(data) < 1 {
return errno.GetCookieFailedError
return errno.GetIdentifierFailedError

Check failure on line 136 in user.go

View workflow job for this annotation

GitHub Actions / lint

undefined: errno.GetIdentifierFailedError
}

s.SetIdentifier(data[1])
Expand Down

0 comments on commit e9d8e91

Please sign in to comment.