对齐闲鱼网页端登录续期与消息凭证流程

将扫码登录、人脸验证、Cookie 续期、MTOP Token 与 WebSocket 凭证更新按官网 JS 流程改为 Go 协议实现,Chromium 仅保留本机指纹读取和滑块验证用途。

补齐权威 Cookie Jar、重定向 Set-Cookie、滑块后快照、静默续期异步响应和并发写回处理,并完善相关回归测试。
This commit is contained in:
Christ committed 2026-07-23 15:36:11 +08:00
1 parent de9c12196f
commit 421712e975
36 files changed
+1762 -2761

No files matched your search

-13
View File
@@ -87,16 +87,3 @@ func TestSilentHasLoginURLMatcher(t *testing.T) {
t.Fatal("ordinary hasLogin request must not be treated as silentHasLogin")
}
}
func TestTokenPageURLPatternIsLimitedToIMDocument(t *testing.T) {
for _, rawURL := range []string{goofishIMURL, goofishIMURL + "?spm=test", goofishIMURL + "#messages"} {
if !tokenPageURLPattern.MatchString(rawURL) {
t.Fatalf("expected token page URL match: %s", rawURL)
}
}
for _, rawURL := range []string{goofishHomeURL, goofishIMURL + "/other", "https://h5api.m.goofish.com/im"} {
if tokenPageURLPattern.MatchString(rawURL) {
t.Fatalf("unexpected token page URL match: %s", rawURL)
}
}
}