🐛 salt寻找规则

This commit is contained in:
sugarBecomer
2025-11-07 15:11:06 +08:00
parent 07444f70df
commit 1ae2601209
+3 -3
View File
@@ -174,9 +174,9 @@ func (c *CpdailyCasLogin) Login(ctx context.Context, schoolDetail *school.School
if saltValue != "" {
salt = saltValue
} else {
saltMatches := saltRegexp.FindAllString(string(loginPageBytes), -1)
if len(saltMatches) > 0 {
salt = saltMatches[0]
saltMatches := saltRegexp.FindStringSubmatch(string(loginPageBytes))
if len(saltMatches) > 1 {
salt = saltMatches[1]
}
}
}