Commit Graph

19 Commits

Author SHA1 Message Date
演变
8f0a2c4655 Merge branch 'master' into copilot/codex-auth-f4d0327 2026-03-25 23:52:53 +08:00
Solo
f4d0327f67 feat: add Codex auth login and export flow
Add Codex Auth support in account management so selected accounts can
complete a Codex-compatible OAuth login flow and export usable auth.json
files.

This commit includes:
- account-management UI entrypoints for Codex Auth login and auth.json download
- backend SSE routes for single-account and batch Codex Auth login execution
- persistence of freshly returned Codex-compatible tokens back into the account database
- Codex auth export support for direct auth.json download and batch zip packaging
- tests covering the Codex Auth login flow and export behavior

The OTP verification failure was caused by manually sending a second OTP after
password verification. The flow now reuses the existing proven login path:
login re-entry, password verification, automatic OTP reception, consent page
handling, workspace selection, and OAuth callback exchange.

Successful logins now also persist workspace_id together with the refreshed
Codex-compatible tokens, making later re-export of auth.json possible without
requiring the browser-downloaded file to still exist locally.

Change-Id: I59df518ef4dc05f8bc52c734dd1b738fcb0b7a4e
2026-03-25 19:55:13 +08:00
Jay Hsueh
05e480a756 feat(newapi): 添加 NEWAPI 上传功能及服务管理接口
- 新增 `newapi_upload.py` 文件,包含上传到 NEWAPI 的功能。
- 在数据库模型中添加 `NewapiService` 表及相关字段。
- 更新 CRUD 操作以支持 NEWAPI 服务的创建、更新、查询和删除。
- 添加新的 API 路由以管理 NEWAPI 服务。
- 前端实现批量上传和单个账号上传到 NEWAPI 的功能。
- 更新相关页面以支持 NEWAPI 服务的选择和管理。
2026-03-24 17:46:33 +08:00
yunxilyf
13f9d17dad fix: 修复 OAuth token 刷新一次性令牌报错及批量验证卡死问题
- 增强了 OAuth 刷新错误解析,遇到一次性 refresh_token 已失效时返回明确中文指引,合并了多余的 status_code 401 判断逻辑
- 为通用 API 请求增加可选超时与中断能力 (utils.js)
- 为前端账号列表的单账号刷新和批量验证增加并发保护及超时控制,避免请求悬挂导致界面卡死 (accounts.js)
2026-03-20 23:03:07 +08:00
cnlimiter
b1a8d02353 feat(mail): 添加收件箱功能,自动获得验证码 2026-03-20 12:54:39 +08:00
cnlimiter
cd01280b56 fix(team manager): 更改team上传router路径 2026-03-19 19:01:44 +08:00
cnlimiter
93ab984200 refactor(html): 优化前端页面 2026-03-19 01:58:57 +08:00
cnlimiter
9e6faecd6b fix(upload): 修复上传按钮 2026-03-19 00:12:28 +08:00
cnlimiter
881e724463 feat(account): 合并上传按钮 2026-03-18 19:08:53 +08:00
cnlimiter
ffd3a81a38 feat(upload): #13 添加上传至sub2api 2026-03-18 18:27:14 +08:00
cnlimiter
931ea798cc feat(cpa): 支持多cpa服务 2026-03-18 14:01:44 +08:00
cnlimiter
036a66d72b feat(accounts): 添加账号cookies存储及支付链接国家选择功能
- 在账号详情页添加cookies编辑与保存功能,用于支付请求
- 支付页面新增国家选择下拉框,支持多国货币计费
- 优化无痕打开浏览器功能,支持注入账号cookies
- 更新数据库模型、API路由及前端界面
2026-03-17 13:59:00 +08:00
cnlimiter
f0e1dd3ad0 feat(accounts): 新增 Sub2Api 格式导出功能 2026-03-16 19:39:11 +08:00
cnlimiter
46f390a984 feat(accounts): 增加全选所有页功能并重构批量操作API
- 前端增加全选所有页横幅和状态管理
- 后端批量API支持select_all参数和筛选条件传递
- 统一批量操作逻辑,支持全选和筛选条件组合
2026-03-16 18:54:49 +08:00
cnlimiter
19eb172eee feat(pay): 支付跳转功能
- 账号管理:补充订阅状态管理、TeamManager上传说明
 - 新增「支付升级」功能模块描述
 - 系统设置:补充 CPA配置和 TeamManager配置项
2026-03-16 17:04:54 +08:00
cnlimiter
41dd27eca0 feat(accounts): 添加CPA上传功能及批量操作支持 2026-03-15 00:43:19 +08:00
cnlimiter
6891b9f11d 4 2026-03-14 20:36:03 +08:00
cnlimiter
0688f4ca7e 3 2026-03-14 17:36:55 +08:00
cnlimiter
9d3099fcd8 2 2026-03-14 16:51:57 +08:00