v0.2.12

Wei-Shaw/sub2apiv0.2.12Oct 2, 2026by github-actions[bot]

Upgrading?

AI Summary

Introduces native support for TypeSafe Jev System One and adds recharge discount tiers to the platform.

Key Highlights

  • Added native support for TypeSafe Jev System One platform
  • Implemented recharge discount ladders supporting bonus and discount modes
  • Added account list priority adjustment and API Key sorting by group

Breaking Changes

  • Database migration adds `bonus_amount` column to `payment_orders`
  • Reset password tokens become hashed and previously issued tokens become invalid upon upgrade

New Features

  • TypeSafe Jev System One support
  • Recharge discount ladders
  • Account list priority adjustment
  • API Key sorting by group

Full Release Notes

> AI API Gateway Platform - 将 AI 订阅配额分发和管理

新增 TypeSafe Jev System One 原生平台支持;充值页新增优惠阶梯,支持「赠金」与「折扣」两种模式。

## 新增功能

- TypeSafe 平台:原生支持 Jev System One(/v1/systemone),含账号创建与测试、分组/渠道/配额/Composite 路由、计费、内容审核与提示词审计覆盖
- 充值优惠阶梯:后台可配置「满 X 送 Y%」赠金或「满 X 打折」折扣模式及 Markdown 活动文案,充值页快捷金额显示促销价签,订单与支付结果展示赠送额度
- 账号列表优先级快捷调整:悬停显示 -/+ 按钮、点击可直接输入,连续点击自动合并为一次保存
- API 密钥列表支持按分组名称排序

## 优化改进

- Grok OAuth 请求身份头对齐官方交互式 CLI 1.0.46

## Bug 修复

- 修复 Grok 因 CLI 版本过低返回 426 的问题
- 修复 Antigravity 上游错误体原样返回给客户端、可能泄露账号池项目 ID 与服务账号邮箱的问题
- 修复邮箱验证码并发猜测可突破 5 次尝试上限的问题;重置密码 token 改为哈希存储并原子单次消费
- 匿名订单查询接口 /payment/public/orders/verify 增加按 IP 限流(20 次/分钟),防止订单号枚举
- 修正账号「自定义错误码」设置的警告文案,准确描述其实际作用

## 升级指南

- 本版本包含数据库迁移(payment_orders 新增 bonus_amount 列、平台约束加入 typesafe),启动时自动执行
- 重置密码 token 改为哈希存储,升级前已发出但尚未使用的重置密码链接将失效,用户需重新申请



---

## 📥 Installation

**Docker:**
```bash
# Docker Hub
docker pull weishaw/sub2api:0.2.12

# GitHub Container Registry
docker pull ghcr.io/wei-shaw/sub2api:0.2.12
```

**One-line install (Linux):**
```bash
curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bash
```

**Manual download:**
Download the appropriate archive for your platform from the assets below.

## 📚 Documentation

- [GitHub Repository](https://github.com/Wei-Shaw/sub2api)
- [Installation Guide](https://github.com/Wei-Shaw/sub2api/blob/main/deploy/README.md)

Related Repositories