Commit Graph

7 Commits

Author SHA1 Message Date
xiezhouwei 789f3b43e4 fix: prevent float-to-int truncation turning small billing amounts (e.g. 0.01) into 0 in use-price paths\n\n- service/quota.go: replace IntPart() with Round(0).IntPart() + safety net\n- relay/helper/price.go: replace int(float64) with int(math.Round()) + safety net\n- controller/channel-test.go: same fix for test billing calculation\n- All use-price paths now round instead of truncate, and guarantee minimum 1 quota when effective pricing > 0 2026-06-23 11:26:00 +08:00
xiezhouwei eb045c9a46 fix: add Chinese vendor name keywords for doubao/seedance in model_meta_infer vendorKeywordAliases 2026-06-21 17:26:30 +08:00
xiezhouwei 06aa707141 fix: add seedance vendor rule and improve vendor_id auto-mapping for existing records 2026-06-18 18:07:47 +08:00
xiezhouwei b63f75ade4 feat: add captcha verification for login form
- Add /api/captcha endpoint with captcha generation/verification service
- Add captcha_enabled option in system settings (model/option.go)
- Add captcha display and refresh logic in LoginForm
- Fix captcha not showing on Chrome due to Semi UI Form.Input suffix
  incompatibility; refactored to standalone flex layout
- Fix stale localStorage cache preventing captcha rendering on first visit
  by proactively fetching /api/status on LoginForm mount
- Add captcha_enabled toggle in admin SystemSetting panel
- Add i18n keys for captcha-related text (zh-CN, en)
2026-06-05 13:57:13 +08:00
xiezhouwei aa1c9559c3 feat: 操作日志功能实现及字段级diff优化
- 新增操作日志完整功能: model/service/controller/middleware + 前端页面
- 用户管理 UpdateUser/ManageUser 改为字段级 diff,仅记录实际变更字段
- 模型定价 UpdateOption 改为模型粒度 diff,仅记录变更的模型条目
- 防止中间件与 controller 重复记录操作日志
- 修复前端侧边栏操作日志模块可见性及权限配置合并
2026-06-04 15:17:59 +08:00
xiezhouwei 4a284111e2 Add ffprobe binaries for video metadata probing 2026-06-03 10:08:47 +08:00
xiezhouwei ccd7d1f4c2 Initial commit 2026-06-03 10:01:10 +08:00