Repository navigation
新增:Qoder 账号设置支持自动获取网页 Cookie - #417
Open
hebingking wants to merge 2 commits into
Open
hebingking wants to merge 2 commits into
hebingking wants to merge 2 commits into
Conversation
- 新增 /api/qoder-cookie/info|set|clear,转插件 webcookie.* 动作 - Tauri 内嵌 WebView 登录后读取 qoder_session_cookie 并保存 - Qoder 账号设置增加网页 Cookie 获取入口与状态 - 同步账号页支持 Qoder 到期排序的说明与前端产物
- 前端分组默认/有效规则在 Qoder 组没有 hasWebCookie 时关闭 credit 规则 - 分组设置显示「未获取网页 Cookie / 待配置」,摘要回落到仅手动顺序 - 后端 rules_for 在 Qoder 无 Cookie 时压掉已保存的 credit 规则 - 其他提供商与 Qoder 已配置 Cookie 的分组行为不变
xiarunjie
added a commit
to xiarunjie/Agent2API
that referenced
this pull request
Nov 3, 2026
This was referenced Nov 3, 2026
xiarunjie
added a commit
to xiarunjie/Agent2API
that referenced
this pull request
Nov 4, 2026
本提交把 main 的内容整体切到上游 v3.4.0 的发布状态(tag v3.4.0 = 31bc7bd,其后 0add462 重建了手机端与 Service Worker 产物并把版本号跟到 3.4.0): · 此前在 beta.6 基线上同步进来的 8 条上游 PR 内容(aimod-cc#305 aimod-cc#311 aimod-cc#343 aimod-cc#415 aimod-cc#417 aimod-cc#418 aimod-cc#434 aimod-cc#449)不再出现在 main 上 —— 它们都改在 beta.6 的旧落点,其中相当 一部分与 3.4.0 自带的实现(路由工作台、会话图片压缩)在同一批文件上各走了 一条路(实测 43 个文件内容分叉)。旧状态完整保留在 archive-main-pre-340 (分支与 tag 同名),需要时可逐条取回。 · 前端产物取自上游 3.4.0 自己的构建结果,与上游源码逐字节同源。 · 基线切齐后,「哪些上游 PR 还能合」可用硬证据重新判定,而不是在分叉状态上叠。 上游对照:aimod-cc/Agent2API @ 0add462(tree 4ffbf15)
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.
概述
配合 ProvidersPlugin/Agent2Providers#23,在桌面端为 Qoder 账号增加「网页 Cookie」自动获取入口。Cookie 只用于读取逐份积分包到期时间,不参与聊天或续期。
改动
/api/qoder-cookie/info|set|clear,转插件的webcookie.info/set/clear管理动作。capture_qoder_web_cookie:内嵌 WebView 打开 Qoder 账号页,登录后读取 HttpOnly 的qoder_session_cookie,提交后端保存。rules_for同步压掉已保存的 credit 规则,避免界面与实际默认口径不一致。依赖
验证
cargo check通过;ui-islands的tsc + vite build通过。[Qoder] 网页 Cookie 已保存(…读到 7 份积分包);测试库 usage 中生成 7 条带expireAt的逐包行。说明
🤖 本条回复由 AI Agent 生成
Generated by an AI agent.