Repository navigation
feat(accounts): support Google multi-account sessions (/u/0..u/9) and interactive cookie selection - #83
Merged
Mag1cFall merged 2 commits intoOct 28, 2026
Conversation
…teractive selection
Owner
|
这在我另一个官网反代项目里做过,所以我修好后再合入 感谢贡献 |
- 合并三处会话试探为一次识别,导入只验证所选会话,给出标签时沿用原逻辑 - 调试浏览器与粘贴 Cookie 的识别结果保留已导入账户并标记,界面默认勾选未导入账户 - 删除 Worker 中多余的会话序号覆盖,重新登录与自动续签换成单账号 Cookie 后序号归零并同步 Worker - 识别遇到请求错误时报错,没有调试浏览器时返回空列表,--authuser 只用于多账号 Cookie 来源 - 识别与导入期间锁定 Cookie 输入,批量导入逐个标记成功项,部分失败后刷新账户列表 - 撤回 Chrome Profile 账号字段回退与模拟服务器测试,补齐七种语言文案与用户文档
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动 / Changes
aistudio.AccountConfig与camoufoxnative.Options增加AuthUser字段。MakerSuiteHTTPTransport、纯 Go WAA 运行时及 Camoufox Worker 支持路由/u/<N>/prompts/new_chat与请求头X-Goog-AuthUser: <N>。internal/chromeauth增加VerifyAuthUser、VerifyNextAuthUser、FindCookieAccount与DiscoverCookieAccounts,支持读取多会话账号。POST /api/accounts/import/cookies/discover接口,在导入 Cookie 时预检并过滤已存在的账号。platform_windows.go增加account_id与full_name回退,支持同一 Profile 内的所有 Google 账号。AccountsPanel.vueCookie 导入对话框增加账号发现与多选支持。setup增加--authuser参数支持。验证 / Verification
go test -v -race ./internal/chromeauth/... ./internal/aistudio/...通过(包含新增的verify_multi_test.go单元测试)。npm run build与go build -trimpath -tags desktop -o aistudio2api.exe ./cmd/aistudio2api编译成功。auth_user存储并在WAA_BACKEND=go与WAA_BACKEND=camoufox下并发完成生成。