abingyyds and Claude Sonnet 4.6
3ed0f67be0
feat: 分站配置导出器模型搜索功能 + i18n 补全
...
ConfigExporter 模型下拉改为可搜索的自定义 combobox,
新增 config.searchModel / config.noModelMatch i18n 键。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 23:05:07 +09:00
abingyyds and Claude Sonnet 4.6
782439995f
feat: 分站 API Key 支持随时查看复制 + 配置文件导出器
...
- 后端:DistTokenList 去掉 Clean(),返回完整 key 供前端显示
- 前端:Token 列表每行显示完整 key 和复制按钮
- 新增 ConfigExporter 组件,支持 7 种工具配置生成
(Claude Code / OpenClaw / OpenCode / Cursor / cURL / Python / Anthropic SDK)
- 自动使用分站域名作为 API Base URL
- 中英文 i18n 翻译
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 22:54:52 +09:00
abingyyds and Claude Sonnet 4.6
aa7bbb3f56
chore: 提交其他 Agent 的未推送改动
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 17:22:17 +09:00
abingyyds and Claude Sonnet 4.6
914ddf0a26
fix: 套餐购买系统修复 - 事务安全、购买记录、前端错误处理
...
- 新增 PackageOrder 模型,记录每次套餐购买的详细信息
- 将套餐扣费和充值操作改为数据库事务(原子操作),防止部分失败导致数据不一致
- 使用行级锁(FOR UPDATE)确保并发安全
- 添加 ErrInsufficientQuota 哨兵错误,提升错误处理可靠性
- 购买成功后记录操作日志(RecordLog)
- 前端 Packages.jsx 增加失败时的错误提示
- 分站模型管理和设置页面小幅修正
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 16:47:29 +09:00
abingyyds and Claude Sonnet 4.6
41d199625f
fix: 分站支付跳转和回调问题
...
- EPay/Stripe: 前端传 return_url (window.location.origin + '/topup')
- 后端优先用 return_url,回退到 Origin/Referer 头
- Stripe: 分站自己实现下单,跳过 ValidateRedirectURL 验证
- 增加分站支付日志便于排查
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 16:09:49 +09:00
abingyyds and Claude Sonnet 4.6
1428aa2895
fix: 修复分站充值页面所有支付按钮不可用的问题
...
- EPay: 改用隐藏表单POST提交(与主站一致),修复参数缺失错误
- Stripe: 修正响应字段为 data.pay_link,使用 window.open 打开
- Crypto: 新增链(TRON/ETH/BSC)和代币(USDT/USDC)选择器,发送完整参数
- Creem: 改为产品模式,展示产品卡片,发送 product_id 而非 amount
- 新增相关 i18n 翻译键
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 15:35:54 +09:00
abingyyds and Claude Sonnet 4.6
3494a21838
build: rebuild dist-site with topup feature
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 15:24:29 +09:00
abingyyds and Claude Sonnet 4.6
a512c4c344
fix: replace TiltedCard with SpotlightCard in default theme features
...
TiltedCard requires an imageSrc prop (renders <img>), but was used as
a children container, causing broken image icons. Replaced with
SpotlightCard which properly supports children content.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 14:59:57 +09:00
abingyyds and Claude Sonnet 4.6
662685cc97
feat: add language switch button and optimize theme visuals
...
- Add LanguageSwitch component to all 4 theme layouts (starter/default/dark/minimal)
- Import Noto Sans SC for proper Chinese font rendering
- Fix theme flash on refresh by blocking render until site info loads
- Optimize default theme: violet/blue/cyan palette, SVG icons instead of emoji
- Optimize dark theme: unified emerald accent, reduced particle count, backdrop-blur
- Add Tailwind safelist for dark theme dynamic class names
- Prioritize localStorage in i18n detection so manual language choice persists
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 10:19:38 +09:00
abingyyds and Claude Sonnet 4.6
01405ca8cf
feat: dist-site 多主题模板 + 中英双语 i18n
...
- 新增 4 套主题模板:starter/default/dark/minimal
- Starter: 毛玻璃 + GradientText + SpotlightCard (原有风格)
- Default: Aurora 极光背景 + SplitText + TiltedCard
- Dark: Particles 粒子 + DecryptedText 赛博朋克风格
- Minimal: 极简优雅 + FadeContent 淡入动画
- 新增 i18n 中英双语支持 (i18next + browser-languagedetector)
- 新增 ThemeProvider 运行时主题切换 (根据 theme_template 字段)
- 新增 11 个 react-bits 动画组件
- 所有页面文案国际化 (Login/Register/Dashboard/Tokens/Pricing/Packages)
- 新增 README.md + README.zh.md 含主题切换指南
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 09:04:25 +09:00
abingyyds and Claude Sonnet 4.6
cc9a8bcc0e
fix: 分站价格单位改为每1M tokens + 移除所有SubRouter主站标识
...
- 价格表单位从 "per 1K tokens" 改为 "per 1M tokens"(价格×1000显示)
- 移除 footer "Powered by SubRouter" 字样
- 默认站名从 "SubRouter" 改为 "AI Platform"
- HTML title 从 "SubRouter Dist Site" 改为 "AI Platform"
- 分站不再包含任何主站品牌标识
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-21 06:01:43 +09:00