github Wei-Shaw/sub2api v0.1.28
Sub2API 0.1.28

latest releases: v0.1.126, v0.1.125, v0.1.124...
4 months ago

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

  • 延迟批量更新:账号 last_used_at 采用 10 秒间隔批量写入,减少数据库负载

  • Caddy 配置示例:新增安全反向代理配置示例 (deploy/Caddyfile)

  • 新增 DeferredService 和 TimingWheelService 支撑批量更新调度

  • 使用 CASE...WHEN SQL 实现高效批量更新

  • 修复订阅过期时间超出 JSON 序列化范围问题(年份 > 9999 导致后台无法显示/删除)

  • 修复 NeedsRefresh bug 导致 token 刷新失败的问题

  • 启动时自动修复已存在的异常过期时间数据(expires_at > 2099年)


📥 Installation

One-line install (Linux):

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

Don't miss a new sub2api release

NewReleases is sending notifications on new releases.