实现 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>
- types/rw_map.go: 解析失败时不再清空原有数据 - HomePricingFilters: 模型类型标签从"对话"改为"文本" - makefile: docker-build 目标添加自动 push Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 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>