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 的分组行为不变
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.