对齐闲鱼网页端登录续期与消息凭证流程
将扫码登录、人脸验证、Cookie 续期、MTOP Token 与 WebSocket 凭证更新按官网 JS 流程改为 Go 协议实现,Chromium 仅保留本机指纹读取和滑块验证用途。 补齐权威 Cookie Jar、重定向 Set-Cookie、滑块后快照、静默续期异步响应和并发写回处理,并完善相关回归测试。
This commit is contained in:
1 parent
de9c12196f
commit
421712e975
36 files changed
+1762
-2761
No files matched your search
@@ -32,7 +32,7 @@ func newTestServer(t *testing.T) (*Server, *db.Store, func()) {
|
||||
store.Cookies.Save(context.Background(), "acc1", "unb=123; _m_h5_tk=tk1_1;", admin.ID)
|
||||
|
||||
mgr := account.NewManager(store, noopHandler{}, nil)
|
||||
srv := New(store, mgr, nil, false, "", ":0", nil, nil, nil)
|
||||
srv := New(store, mgr, false, "", ":0", nil, nil, nil)
|
||||
mtopClient := mtop.NewClient()
|
||||
mtopClient.HTTPClient = &http.Client{Transport: roundTripFunc(func(req *http.Request) (*http.Response, error) {
|
||||
return &http.Response{
|
||||
|
||||
Reference in new issue
Block a user