fengsilin
de993c5605
feat(docker): 镜像 tag 加入 commit hash,未提交代码标记 dirty
格式:{时间}-{分支}-{短commit}[-dirty]
示例:202606051500-master-e9d5d51b(干净)
202606051500-master-e9d5d51b-dirty(有未提交改动)
il y a 1 semaine
fengsilin
5afa4c48fc
feat: 用户表新增注册时间字段 + 用户列表显示邮箱和注册时间
- model/user.go: 新增 CreatedAt 字段,Insert 时自动填充
- UsersColumnDefs.jsx: 用户列表新增邮箱、注册时间列
- makefile: 新增 build-widget target
il y a 3 semaines
fengsilin
1cecd5349d
feat: 跨区域配额同步(Master-Slave Region Sync)
实现 Master-Slave 架构的跨区域用户和配额同步功能,支持国内主节点与
海外从节点之间的用户创建推送、余额同步、预扣费批量回传。
主要变更:
- 新增 region_sync 服务层(SyncManager/SyncClient/推送逻辑)
- User 模型扩展 Source/RemoteUserId/SyncedQuota/LastSyncAt 字段
- BillingSession 支持 SyncedUserFunding 资金来源
- 新增 SyncAuth 中间件(X-Sync-API-Key + 常量时间比较)
- 新增 PendingSyncRecord/QuotaSyncLog 数据模型
- 前端新增区域同步配置面板
- 支持 SESSION_NAME 环境变量避免多节点 cookie 冲突
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
il y a 2 mois
fengsilin
044b5aafea
fix: 改进 RWMap JSON 加载原子性 & UI 文案调整
- types/rw_map.go: 解析失败时不再清空原有数据
- HomePricingFilters: 模型类型标签从"对话"改为"文本"
- makefile: docker-build 目标添加自动 push
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
il y a 2 mois
fengsilin
53f5522299
chore: add Docker build and push commands to Makefile
- Add docker-build target for building Docker images
- Add docker-push target for building and pushing images
- Dynamic tag format: {registry}:{timestamp}-{branch}
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
il y a 2 mois
winter
08164cd0ae
fix
il y a 3 mois