✨ 适配华侨大学

This commit is contained in:
sugarBecomer
2025-11-23 20:55:54 +08:00
parent 83749fc647
commit 0f83cfc9b9
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ bucket = "likedream"
appVersion = "9.7.2"
systemVersion = "iOS 17"
calVersion = "firstv"
sliderIds = ["1018764144934965", "sdhyxy", "hqdx"]
[task]
concurrency = 20
+3 -1
View File
@@ -23,6 +23,7 @@ import (
"github.com/PuerkitoBio/goquery"
"github.com/avast/retry-go/v4"
"github.com/deatil/go-cryptobin/cryptobin/crypto"
"github.com/gogf/gf/v2/frame/g"
"github.com/samber/oops"
"github.com/tidwall/gjson"
"resty.dev/v3"
@@ -192,7 +193,8 @@ func (c *CpdailyCasLogin) Login(ctx context.Context, schoolDetail *school.School
}
// 声明需要滑块验证码的学校id
var SliderCaptchaIds = []string{"1018764144934965", "sdhyxy"}
var SliderCaptchaIds = g.Cfg().MustGet(ctx, cst.ConfigSliderSchoolIds).Strings()
// []string{"1018764144934965", "sdhyxy", "hqdx"}
// 判断是否需要验证码
if isCasNeedCaptcha(ctx, loginResponseUrl, loginType, username, c.client) {
// 如果是滑块验证码
+1
View File
@@ -22,6 +22,7 @@ const (
ConfigCpdailyAppVersion = "cpdaily.appVersion"
ConfigCpdailySystemVersion = "cpdaily.systemVersion"
ConfigCpdailyCalVersion = "cpdaily.calVersion"
ConfigSliderSchoolIds = "cpdaily.sliderIds"
ConfigRedisUrl = "redis.url"