alfadb
|
ca08825935
|
feat(claude): 自动同步 Claude Code 客户端版本号
出站伪装用的 Claude Code 版本号此前硬编码在 claude.CLICurrentVersion,
只能靠环境变量 SUB2API_CLAUDE_CLI_VERSION 覆盖且需重启;Anthropic 抬高
版本下限时(如 Opus 5.5 要求 >= 2.1.280)必须改代码发版才能跟上。
改为每小时从官方 GitHub Releases 同步最新稳定版,无需重启也无需发版。
- 新增 ClaudeCodeVersionSyncService:1 小时间隔,数据源 anthropics/claude-code
的 releases/latest,失败回退最近 30 条列表;过滤 draft/prerelease;
只向前推进,拉取失败保留上次值不降级;面板可关闭
- 新增三个设置项:claude_code_client_version(管理员手动固定)、
claude_code_client_version_synced(同步服务独占写)、
claude_code_version_auto_sync_enabled(开关,默认开)
- 取值优先级:面板手动值 -> 同步值 -> SUB2API_CLAUDE_CLI_VERSION -> 内置基线,
每层经 IsSupportedCLIVersion 校验,含 60s 缓存与 singleflight
- 版本号运行期化:claude.DefaultHeaders 由包级 var 改为函数,新增
EffectiveCLIVersion/DefaultUserAgent 与 SetCLIVersionResolver(未注入时
与 CLIVersion() 等价);identity 的 defaultFingerprint 不再在包 init 固化,
指纹下限与主版本超前校验改用运行期值
- 守住一致性铁律:buildUpstreamRequest 与 count_tokens 各取一次 UA 字符串,
同时喂给出站 User-Agent 头与请求体 billing 的 cc_version,避免缓存翻转
瞬间头体版本不一致被判非正版客户端
- 管理后台设置页新增配置区块,含中英文案与「当前同步到」只读展示
|
2026-09-23 13:35:44 +08:00 |
|
Wesley Liddick
|
d8d5e1dd35
|
Merge pull request #7282 from feeeei/feat/affiliate-offline-withdrawal
feat(affiliate): 提取记录支持登记线下提现
|
2026-09-23 11:20:32 +08:00 |
|
Wesley Liddick
|
b2d6b954a1
|
Merge pull request #7090 from Brisbanehuang/codex/scheduling-rate-account-fallback
fix(scheduler): 无有效探测时回退账号倍率,支持 OAuth 参考倍率留空
|
2026-09-23 11:18:37 +08:00 |
|
Wesley Liddick
|
1947add842
|
Merge pull request #7288 from feeeei/feat/backup-monthly-archive
feat(backup): 支持月度归档与独立保留策略
|
2026-09-23 11:18:08 +08:00 |
|
Wesley Liddick
|
f53252e292
|
Merge pull request #6844 from ouchihao/codex/issue-6837-groups-manifest-test-pinia
test(groups): initialize Pinia in Codex manifest regression
|
2026-09-23 11:17:41 +08:00 |
|
Wesley Liddick
|
61e7d31605
|
Merge pull request #7513 from Achordchan/fix/channel-video-pricing-preview
fix(channels): display video pricing per second
|
2026-09-23 11:17:27 +08:00 |
|
Wesley Liddick
|
7c0a2a556c
|
Merge pull request #7160 from StarryKira/codex/log-retention-upstream
feat: 支持运维与请求日志的滚动保留设置
|
2026-09-23 10:07:25 +08:00 |
|
Wesley Liddick
|
24872fda7c
|
Merge pull request #7493 from ouchihao/codex/bug-temp-unsched-race
fix(accounts): keep temporary unschedulable status scoped to the current account
|
2026-09-23 10:03:22 +08:00 |
|
Wesley Liddick
|
7d5615998c
|
Merge pull request #7492 from ouchihao/codex/bug-monitor-detail-race
fix(channel-monitor): ignore stale detail requests
|
2026-09-23 10:00:49 +08:00 |
|
Wesley Liddick
|
d7e4bba0e7
|
Merge pull request #7494 from ouchihao/codex/bug-balance-error-message
fix(users): show normalized API errors in the balance dialog
|
2026-09-23 10:00:30 +08:00 |
|
Wesley Liddick
|
d3d0f653e5
|
Merge pull request #7495 from ouchihao/codex/bug-subscription-expiry-label
fix(subscriptions): use calendar dates for expiry labels
|
2026-09-23 09:59:49 +08:00 |
|
Wesley Liddick
|
9e0e146984
|
Merge pull request #7496 from ouchihao/codex/bug-totp-late-timer
fix(profile): avoid starting TOTP cooldowns after unmount
|
2026-09-23 09:59:22 +08:00 |
|
Wesley Liddick
|
fc4465f78b
|
Merge pull request #7498 from ouchihao/codex/bug-model-tag-ime
fix(channels): preserve model tags during IME composition
|
2026-09-23 09:58:50 +08:00 |
|
Wesley Liddick
|
0eaa7c3c84
|
Merge pull request #7499 from ouchihao/codex/bug-date-picker-midnight
fix(date-picker): refresh relative dates after midnight
|
2026-09-23 09:58:36 +08:00 |
|
Wesley Liddick
|
5e4968492f
|
Merge pull request #7500 from ouchihao/codex/bug-user-attribute-race
fix(users): discard stale user attribute responses
|
2026-09-23 09:57:53 +08:00 |
|
Wesley Liddick
|
a81547f244
|
Merge pull request #7501 from ouchihao/codex/bug-profile-dingtalk-source
fix(profile): recognize DingTalk profile sources
|
2026-09-23 09:57:39 +08:00 |
|
Achord Chan
|
bdb9a91db0
|
fix(channels): display video pricing per second
|
2026-09-23 09:09:37 +08:00 |
|
feeeei
|
c19204289d
|
fix(affiliate): 线下提现登记按 Idempotency-Key 幂等
登记请求只有金额,提交成功但响应丢失时,管理员重试会把同一笔站外打款再扣
一次返利额度。现在一次登记由 Idempotency-Key 标识,数据库在同一事务内以唯一
约束去重:
- user_affiliate_ledger 新增 operation_id(幂等键派生的 SHA-256)与部分唯一
索引(迁移 240);接口要求 Idempotency-Key,缺失或非法返回 400
- 事务内先以 operation_id 写入占位流水,再解冻、扣减并补写额度快照;同键
重试返回首笔流水的结果并带 X-Idempotency-Replayed,不重复扣减;同键换了
用户或金额返回 409 IDEMPOTENCY_KEY_CONFLICT;额度不足时占位随事务回滚
- 并发的同键请求在唯一索引上等待先到者:先到者提交则返回同一条流水,回滚
则自行登记
- 弹窗在网络错误、超时、5xx、408/409 时锁定用户与金额,重试沿用同一请求与
幂等键;幂等键按管理员、用户、金额暂存于 sessionStorage,登记有确定结果后
释放
|
2026-09-23 01:24:59 +08:00 |
|
feeeei
|
8f8358cc67
|
fix(backup): 关闭月度归档后不再改写旧归档的保留份数
|
2026-09-23 00:44:29 +08:00 |
|
Wesley Liddick
|
974a819ba1
|
Merge pull request #7108 from ouchihao/codex/bug-select-keyboard-focus
fix(ui): focus non-searchable select dropdowns
|
2026-09-22 21:56:34 +08:00 |
|
Wesley Liddick
|
d27fbb3b7d
|
Merge pull request #7109 from ouchihao/codex/bug-date-range-dismiss
fix(ui): discard unapplied date ranges on dismissal
|
2026-09-22 21:56:24 +08:00 |
|
Wesley Liddick
|
ea34a2356c
|
Merge pull request #7142 from ouchihao/codex/bug-select-search-highlight
fix(ui): reset select highlight when search results change
|
2026-09-22 21:56:14 +08:00 |
|
Wesley Liddick
|
2b12de14ee
|
Merge pull request #7319 from ouchihao/codex/bug-dialog-scroll-lock
fix(dialog): keep body locked while another dialog is open
|
2026-09-22 21:55:30 +08:00 |
|
Wesley Liddick
|
7865051fdf
|
Merge pull request #7320 from ouchihao/codex/bug-image-upload-read-order
fix(upload): cancel superseded image reads
|
2026-09-22 21:55:18 +08:00 |
|
Wesley Liddick
|
4b0adb6863
|
Merge pull request #7321 from ouchihao/codex/bug-proxy-expiry-boundary
fix(proxies): label newly expired proxies correctly
|
2026-09-22 21:55:07 +08:00 |
|
Wesley Liddick
|
ba5737fe14
|
Merge pull request #7322 from ouchihao/codex/bug-ccswitch-antigravity-slash
fix(ccswitch): trim trailing slashes before Antigravity path
|
2026-09-22 21:54:51 +08:00 |
|
Wesley Liddick
|
7b13cb410d
|
Merge pull request #7323 from ouchihao/codex/bug-announcement-stale-fetch
fix(announcements): ignore superseded fetch results
|
2026-09-22 21:54:38 +08:00 |
|
chihao.ou
|
3eb4bae9ab
|
fix(profile): recognize DingTalk profile sources
|
2026-09-22 21:49:27 +08:00 |
|
chihao.ou
|
1f5cfe8973
|
fix(users): discard stale user attribute responses
|
2026-09-22 21:49:11 +08:00 |
|
chihao.ou
|
5fc4a06af6
|
fix(date-picker): refresh relative dates after midnight
|
2026-09-22 21:46:06 +08:00 |
|
chihao.ou
|
a1eaad6033
|
fix(channels): preserve model tags during IME composition
|
2026-09-22 21:45:48 +08:00 |
|
chihao.ou
|
1ca54bcc25
|
fix(profile): avoid starting TOTP cooldowns after unmount
|
2026-09-22 21:42:54 +08:00 |
|
chihao.ou
|
7ba6efe805
|
fix(subscriptions): use calendar dates for expiry labels
|
2026-09-22 21:40:14 +08:00 |
|
chihao.ou
|
4d667f1b08
|
fix(users): show normalized API errors in the balance dialog
|
2026-09-22 21:39:54 +08:00 |
|
chihao.ou
|
5c38d372c1
|
fix(accounts): keep temporary unschedulable status scoped to the current account
|
2026-09-22 21:37:01 +08:00 |
|
chihao.ou
|
9e4010695b
|
fix(channel-monitor): ignore stale detail requests
|
2026-09-22 21:36:42 +08:00 |
|
Wesley Liddick
|
b717ac7f0b
|
Merge pull request #7289 from wucm667/fix/issue-7281-platform-quota-options
fix(admin): align platform quota editor with supported platforms
|
2026-09-22 20:29:26 +08:00 |
|
Wesley Liddick
|
2448a38b55
|
Merge pull request #7395 from zhuzhihaocool-bit/fix/codex-base-url-v1
fix(frontend): ensure Codex base URLs include /v1
|
2026-09-22 20:28:39 +08:00 |
|
Wesley Liddick
|
5fd3461142
|
Merge pull request #7418 from ouchihao/codex/bug-pricing-exponent
fix(pricing): parse scientific notation in token bounds
|
2026-09-22 20:28:12 +08:00 |
|
Wesley Liddick
|
c1319917cf
|
Merge pull request #7417 from ouchihao/codex/bug-payment-callback-slash
fix(payment): trim callback base URL trailing slashes
|
2026-09-22 20:28:03 +08:00 |
|
Wesley Liddick
|
5af29a3b93
|
Merge pull request #7422 from ouchihao/codex/bug-user-api-keys-stale
fix(users): keep API key results scoped to the selected user
|
2026-09-22 20:27:07 +08:00 |
|
Wesley Liddick
|
62a8919a1c
|
Merge pull request #7365 from ouchihao/codex/bug-monitor-template-stale-list
fix(monitor): ignore stale template picker responses
|
2026-09-22 20:26:58 +08:00 |
|
Wesley Liddick
|
1ea00258d0
|
Merge pull request #7375 from ouchihao/codex/bug-balance-history-stale
fix(users): ignore superseded balance history requests
|
2026-09-22 20:26:33 +08:00 |
|
Wesley Liddick
|
023b38354f
|
Merge pull request #7373 from ouchihao/codex/bug-user-groups-load-guard
fix(users): wait for group configuration before enabling save
|
2026-09-22 20:26:23 +08:00 |
|
Wesley Liddick
|
a765b3c176
|
Merge pull request #7367 from ouchihao/codex/bug-rpm-override-empty
fix(groups): require integer RPM overrides before adding
|
2026-09-22 20:26:11 +08:00 |
|
Wesley Liddick
|
ca47fa352c
|
Merge pull request #7376 from ouchihao/codex/bug-group-rate-positive
fix(groups): reject negative custom rates before adding
|
2026-09-22 20:26:00 +08:00 |
|
Wesley Liddick
|
f2e55bf4d7
|
Merge pull request #7420 from ouchihao/codex/bug-error-detail-stale
fix(usage): ignore superseded error detail requests
|
2026-09-22 20:25:26 +08:00 |
|
Wesley Liddick
|
c96d36ec95
|
Merge pull request #7374 from ouchihao/codex/bug-search-ime
fix(search): wait for committed IME input before searching
|
2026-09-22 20:25:15 +08:00 |
|
Wesley Liddick
|
e4f97a53ec
|
Merge pull request #7366 from ouchihao/codex/bug-user-attribute-clear-metadata
fix(users): persist cleared custom attribute hints
|
2026-09-22 20:24:59 +08:00 |
|
Wesley Liddick
|
9e175bd491
|
Merge pull request #7364 from ouchihao/codex/bug-group-replace-errors
fix(users): show errors when group replacement fails
|
2026-09-22 20:24:47 +08:00 |
|