Commit Graph

36 Commits

Author SHA1 Message Date
KevinLiao
3c797a85e0 feat: Claude Console账号增强,升级模型支持列表为模型映射表! 2025-07-30 23:13:59 +08:00
github-actions[bot]
acf8dbb970 chore: sync VERSION file with release v1.1.57 and rebuild frontend [skip ci] 2025-07-30 12:51:30 +00:00
KevinLiao
6216433b0b Merge branch 'main' of https://github.com/Wei-Shaw/claude-relay-service
# Conflicts:
#	web/admin-spa/dist/assets/LoginView-BJ0LLv16.js
#	web/admin-spa/dist/assets/LogoTitle-DHj-MjwS.js
#	web/admin-spa/dist/assets/MainLayout-CLydIeqJ.js
#	web/admin-spa/dist/assets/SettingsView-DicW12bL.js
#	web/admin-spa/dist/assets/index-HYE9xPuR.js
#	web/admin-spa/dist/index.html
#	web/admin-spa/src/components/apikeys/CreateApiKeyModal.vue
#	web/admin-spa/src/components/apikeys/EditApiKeyModal.vue
#	web/admin-spa/src/views/ApiKeysView.vue
2025-07-30 20:41:10 +08:00
KevinLiao
b86adcd6d2 fix: 1.修复ClaudeConsole账号设置为专属绑定的功能
2. 修复Claude 官方账号会话窗口计算错误的问题
2025-07-30 20:20:12 +08:00
github-actions[bot]
334823a5e6 chore: sync VERSION file with release v1.1.55 and rebuild frontend [skip ci] 2025-07-30 08:20:24 +00:00
github-actions[bot]
18e67f5632 chore: sync VERSION file with release v1.1.54 and rebuild frontend [skip ci] 2025-07-30 07:38:48 +00:00
github-actions[bot]
363d1c3ed3 chore: sync VERSION file with release v1.1.53 and rebuild frontend [skip ci] 2025-07-30 04:51:05 +00:00
shaw
9a346a22d0 Merge branch 'dev' into main
合并dev分支的时区修复和其他改进:
- 修复仪表板图表时区处理问题
- 修复自定义时间选择器的UTC转换
- 删除dist构建产物目录
2025-07-30 12:50:20 +08:00
shaw
2bfb61e1d9 build: 重新构建前端 - 包含UTC+8时区修复 2025-07-30 12:26:45 +08:00
shaw
1e82a6af8b build: 重新构建前端应用 - 包含时区转换修复 2025-07-30 12:14:42 +08:00
shaw
4eedc2e6b5 fix(admin-spa): 修复仪表板时区处理 - 前端显示系统时区,发送UTC时间
- 简化 getSystemTimezoneDay 函数,正确处理系统时区到UTC的转换
- 修复 setDateFilterPreset 中昨天/前天的计算逻辑,使用本地时间计算日期
- 确保自定义时间选择器显示系统时区时间,但发送UTC时间给后端
- API Keys页面已经使用正确的时间范围参数,无需修改
2025-07-30 12:05:30 +08:00
github-actions[bot]
555834227f chore: sync VERSION file with release v1.1.52 and rebuild frontend [skip ci] 2025-07-30 03:37:10 +00:00
shaw
6eae292922 fix(admin-spa): 修正时区计算双重偏移问题
- 重写getSystemTimezoneDay函数,修复之前的双重偏移错误
- 简化时间计算逻辑,直接使用Date.UTC创建系统时区时间
- 移除不必要的getDateInSystemTimezone调用

问题原因:
之前的实现在计算系统时区日期时进行了双重偏移,导致时间范围错误

修复后:
- 正确计算系统时区某一天的起止UTC时间
- "昨天"选项现在正确显示系统时区的完整一天(如29号0:00到29号23:59)
- 适配所有时区的用户,不依赖用户浏览器时区

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 11:01:51 +08:00
shaw
a265ebf335 fix(admin-spa): 修复仪表板图表时区处理问题
- 修复前端时间计算逻辑,正确处理不同时区用户的时间范围选择
- 添加系统时区信息到dashboard API响应
- 修改getSystemTimezoneDay函数,确保正确处理系统时区的日期转换
- 修复"昨天"和"前天"时间范围计算,基于系统时区而非用户时区
- 添加后端调试日志以便追踪时间转换问题

问题描述:
- 选择"昨天"时显示29号7:00到30号6:00(错误)
- 选择"近24小时"时显示29号17:00到30号17:00(错误)

修复后:
- "昨天"正确显示完整一天(如29号0:00到29号23:59)
- "近24小时"正确显示从当前时间往前24小时
- 支持所有时区的用户,不再硬编码UTC+8偏移

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 10:52:26 +08:00
shaw
496569d110 修复仪表板折线图时间范围计算错误(UTC+8时区) 2025-07-30 10:34:20 +08:00
shaw
43dce7db4e 合并 main 分支到 dev 分支 2025-07-30 10:18:35 +08:00
shaw
d2ac3961e8 Merge remote-tracking branch 'origin/main' into main 2025-07-30 10:17:25 +08:00
github-actions[bot]
dae8e8e914 chore: sync VERSION file with release v1.1.51 and rebuild frontend [skip ci] 2025-07-30 02:12:10 +00:00
shaw
4c64e6df4b fix(timezone): 修复数据写入时的时区错误(关键修复)
- 修复 redis.js 中所有时区相关的日期获取方法
  - 使用 getUTC* 方法替代 get* 方法获取正确的时区日期
  - 影响:incrementTokenUsage, incrementAccountUsage, incrementDailyCost 等
- 修复 admin.js 中查询数据时的日期键生成
- 确保所有 Redis 键格式一致:
  - 日期:YYYY-MM-DD
  - 月份:YYYY-MM
  - 小时:YYYY-MM-DD:HH
- 添加服务端时间标签,避免前端时区转换问题

这是核心修复,确保数据从源头就是正确的。
2025-07-30 10:07:25 +08:00
KevinLiao
0516547285 fix: 优化ClaudeConsole账号模型选择提示 2025-07-30 09:42:02 +08:00
KevinLiao
34dca961ef fix: 1. 修复调度优先级以及手动禁止调度逻辑的问题
2. 优化列表优先级显示
2025-07-30 09:30:11 +08:00
shaw
61b1a0ec32 fix(admin-spa): 修复时区问题导致的图表时间显示不一致和今日统计错误 2025-07-30 09:18:55 +08:00
shaw
53d6f77753 fix(admin-spa): 修复使用趋势图表按小时粒度不显示数据的问题 2025-07-30 08:55:07 +08:00
KevinLiao
98eef591d7 feat: 新增标准Claude Console API 账号支持(WEB) 2025-07-30 08:21:50 +08:00
KevinLiao
fddd5ee3e9 feat: 新增标准Claude Console API账号支持 2025-07-30 08:19:44 +08:00
github-actions[bot]
864c7c76e6 chore: sync VERSION file with release v1.1.49 and rebuild frontend [skip ci] 2025-07-29 11:22:36 +00:00
shaw
d761e89925 fix(admin-spa): 替换原生确认弹窗为自定义弹窗并修复按钮样式
- 替换API Key删除确认弹窗为自定义ConfirmDialog组件
- 替换API Key创建成功后关闭确认弹窗为自定义弹窗
- 修复'我已保存'按钮样式,增加背景色对比度和边框
- 添加降级方案以确保兼容性
2025-07-29 19:21:01 +08:00
github-actions[bot]
96520bca57 chore: sync VERSION file with release v1.1.48 and rebuild frontend [skip ci] 2025-07-29 10:37:16 +00:00
shaw
eff796ed8e fix(admin-spa): 修复API Key创建成功后的弹窗显示问题
- 完全复刻原版的API Key成功弹窗样式
- 修复API Key字段读取问题,支持apiKey和key两种字段名
- 添加完整的显示/隐藏功能,默认隐藏API Key内容
- 实现与原版一致的警告提示和关闭确认
- 优化复制功能,添加降级方案
2025-07-29 18:36:35 +08:00
github-actions[bot]
7a9e04f169 chore: sync VERSION file with release v1.1.47 and rebuild frontend [skip ci] 2025-07-29 09:06:30 +00:00
github-actions[bot]
514d2f5377 chore: sync VERSION file with release v1.1.46 and rebuild frontend [skip ci] 2025-07-29 08:38:31 +00:00
github-actions[bot]
31ccf48b00 chore: sync VERSION file with release v1.1.45 and rebuild frontend [skip ci] 2025-07-29 08:14:59 +00:00
github-actions[bot]
f23b9bd222 chore: sync VERSION file with release v1.1.44 and rebuild frontend [skip ci] 2025-07-29 07:50:00 +00:00
shaw
ff6a361720 fix(admin-spa): 完善账户管理代理信息显示功能
- 修复账户列表中代理信息显示,支持用户名密码部分隐藏
- 修复编辑账户时自动勾选代理设置并正确显示代理信息
- 改进代理密码输入框使用密码类型
- 将 admin-spa/dist 目录加入 .gitignore 并从版本控制中移除

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-29 15:49:15 +08:00
github-actions[bot]
5795e8cdef chore: sync VERSION file with release v1.1.43 and rebuild frontend [skip ci] 2025-07-29 07:12:23 +00:00
github-actions[bot]
5a6740cce7 chore: sync VERSION file with release v1.1.42 and rebuild frontend [skip ci] 2025-07-29 06:23:07 +00:00