feat: 广电加密参数改为按脚本内容读取
This commit is contained in:
@@ -425,17 +425,18 @@ func (c *Client) fetchProfile(ctx context.Context) (*siteProfile, error) {
|
||||
last = err
|
||||
continue
|
||||
}
|
||||
if isWAF(body) || !bytes.Contains(body, []byte("MII")) {
|
||||
if isWAF(body) {
|
||||
continue
|
||||
}
|
||||
p, err := parseSiteJS(string(body))
|
||||
src := string(body)
|
||||
if !strings.Contains(src, "encryptLong") || !strings.Contains(src, "setPublicKey") {
|
||||
continue
|
||||
}
|
||||
p, err := parseSiteJS(src)
|
||||
if err == nil {
|
||||
return p, nil
|
||||
}
|
||||
last = err
|
||||
if strings.Contains(ref, "common-") {
|
||||
break
|
||||
}
|
||||
}
|
||||
if last != nil {
|
||||
return nil, last
|
||||
|
||||
Reference in New Issue
Block a user