shaw
|
4789c03ea3
|
fix: 修复 Gemini token 刷新时的二次解密错误
- refreshAccountToken 中的 account.refreshToken 已经是解密后的值
- 移除多余的 decrypt() 调用,避免二次解密导致的错误
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 14:34:45 +08:00 |
|
shaw
|
25ab1575ed
|
feat: 改进 Gemini token 刷新测试脚本和添加解密测试脚本
- 修正加密盐值为 'gemini-account-salt'(之前错误使用了其他值)
- 在 test-gemini-refresh.js 中添加详细的调试信息
- 显示配置信息和加密参数
- 显示原始加密数据
- 尝试手动解密并显示结果
- 更详细的错误信息
- 添加 test-gemini-decrypt.js 用于单独测试解密功能
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 13:56:52 +08:00 |
|
shaw
|
24858f7e51
|
chore: 删除调试加解密相关脚本
根据用户要求删除临时调试脚本,准备重新分析加密流程
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 13:47:34 +08:00 |
|
shaw
|
adb1868899
|
feat: 添加修复默认密钥加密的 Gemini 账户脚本
- 检测使用默认密钥加密的数据
- 尝试用默认密钥解密后重新用当前密钥加密
- 解决密钥变更导致的解密失败问题
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 12:37:41 +08:00 |
|
shaw
|
b3cd97ab18
|
feat: 添加 Gemini token 修复和更新脚本
- fix-gemini-encryption.js: 诊断和修复加密问题
- update-gemini-token.js: 手动更新 refresh token 的工具
解决线上环境加密密钥不一致导致的解密失败问题
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 12:27:06 +08:00 |
|
shaw
|
8f0da8e914
|
fix: 修复 Gemini 解密调试脚本的密钥生成逻辑
- 使用 config.security.encryptionKey 而不是直接读取环境变量
- 添加 crypto.scryptSync 和 ENCRYPTION_SALT 以匹配实际加密逻辑
- 显示实际使用的加密配置信息
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 12:18:57 +08:00 |
|
shaw
|
a939fcebac
|
feat: 添加 Gemini refreshToken 解密调试脚本
- 检查环境变量中的 ENCRYPTION_KEY
- 显示加密数据的格式信息
- 尝试新旧两种解密方法
- 输出详细的调试信息帮助定位问题
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 12:16:08 +08:00 |
|
shaw
|
3d13542fff
|
fix: 修复 Gemini 账户 refreshToken 解密错误
- 修复 updateAccount 中对已解密数据的二次解密问题
- 改进解密函数,使用固定长度的 IV 避免冒号分隔符问题
- 确保 refreshToken 能正确存储和使用
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 12:10:03 +08:00 |
|
shaw
|
71c2ef5d6d
|
fix: 修复 Gemini token 刷新测试脚本的逻辑问题
- 移除错误的 refreshToken 占位符判断
- 直接使用 getAccount 获取解密后的完整账户信息
- 只有真正没有 refresh token 时才跳过测试
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 12:01:56 +08:00 |
|
shaw
|
dd73045223
|
feat: 改进 Gemini token 刷新机制和错误处理
- 修复 token 刷新时的错误处理逻辑
- 添加详细的错误日志记录
- 新增 test-gemini-refresh.js 测试脚本
- 更新 CLAUDE.md 文档,添加 Gemini token 刷新故障排除指南
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-26 11:41:17 +08:00 |
|
github-actions[bot]
|
16b1533753
|
chore: sync VERSION file with release v1.1.25 [skip ci]
|
2025-07-26 03:33:40 +00:00 |
|
Wesley Liddick
|
7ffc942a1f
|
Merge pull request #76 from kevinconan/main
fix: docker下没有默认的APIKey客户端限制选项
|
2025-07-26 11:33:30 +08:00 |
|
KevinLiao
|
1e66838a41
|
Merge branch 'main' of https://github.com/Wei-Shaw/claude-relay-service
|
2025-07-26 11:24:57 +08:00 |
|
KevinLiao
|
cd139706a6
|
fix: config.example.js 添加默认的客户端限制配置
|
2025-07-26 11:24:34 +08:00 |
|
github-actions[bot]
|
bc1f78611d
|
chore: sync VERSION file with release v1.1.24 [skip ci]
|
2025-07-26 03:03:16 +00:00 |
|
Wesley Liddick
|
383f33fa77
|
Merge pull request #72 from kevinconan/main
feat: 增加APIKey 客户端限制功能
|
2025-07-26 11:03:06 +08:00 |
|
KevinLiao
|
b37a7055ae
|
Merge branch 'main' of https://github.com/Wei-Shaw/claude-relay-service
|
2025-07-26 10:32:05 +08:00 |
|
github-actions[bot]
|
ff612685f6
|
chore: sync VERSION file with release v1.1.23 [skip ci]
|
2025-07-26 02:05:54 +00:00 |
|
Wesley Liddick
|
ab43fd13f0
|
Merge pull request #71 from lesignals/main
feat: claude账号维度添加使用次数统计
|
2025-07-26 10:05:44 +08:00 |
|
Wesley Liddick
|
cf0eaf0534
|
Merge branch 'main' into main
|
2025-07-26 10:05:24 +08:00 |
|
kevinconan
|
441361f3b4
|
Merge branch 'Wei-Shaw:main' into main
|
2025-07-26 08:57:03 +08:00 |
|
github-actions[bot]
|
4e91f241cf
|
chore: sync VERSION file with release v1.1.22 [skip ci]
|
2025-07-26 00:47:38 +00:00 |
|
Wesley Liddick
|
45c70594e7
|
Merge pull request #75 from csdbit/add-sort
给API Keys和账号管理列表增加关键字段排序
|
2025-07-26 08:47:29 +08:00 |
|
csdbit
|
fb306242c2
|
给API Keys和账号管理列表增加关键字段排序
|
2025-07-26 01:53:23 +08:00 |
|
KevinLiao
|
b8c7c3e9f5
|
feat: 增加APIKey 客户端限制功能
|
2025-07-25 23:36:48 +08:00 |
|
leslie
|
578d3ca34b
|
重复计次修复
|
2025-07-25 22:08:30 +08:00 |
|
leslie
|
53e0577e19
|
添加claude账号维度计算token费用前端修复
|
2025-07-25 21:48:54 +08:00 |
|
leslie
|
1cf70a627f
|
添加claude账号维度计算token费用
|
2025-07-25 21:36:17 +08:00 |
|
leslie
|
5522967792
|
添加claude账号维度计算token费用
|
2025-07-25 21:27:17 +08:00 |
|
github-actions[bot]
|
6f2fe2f643
|
chore: sync VERSION file with release v1.1.21 [skip ci]
|
2025-07-25 12:45:22 +00:00 |
|
Wesley Liddick
|
11ca3a9179
|
Merge pull request #69 from LeslieLai1999/main
解决轮询问题
|
2025-07-25 20:45:14 +08:00 |
|
leslie
|
4325de90e1
|
解决轮询问题
|
2025-07-25 20:27:20 +08:00 |
|
github-actions[bot]
|
fe1300de65
|
chore: sync VERSION file with release v1.1.20 [skip ci]
|
2025-07-25 07:36:49 +00:00 |
|
shaw
|
7936f1aa21
|
Merge branch 'dev'
|
2025-07-25 15:36:07 +08:00 |
|
shaw
|
3eba158387
|
fix: 修复管理员登录在Redis缓存失效后无法登录的问题
- 在登录时如果Redis中没有管理员凭据,自动从init.json重新加载
- 重新加载时不设置过期时间,避免24小时后再次失效
- 保持init.json作为唯一真实数据源的设计原则
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-25 15:30:50 +08:00 |
|
github-actions[bot]
|
bafd64488d
|
chore: sync VERSION file with release v1.1.19 [skip ci]
|
2025-07-25 04:55:19 +00:00 |
|
Wesley Liddick
|
cc1759a0b1
|
Merge pull request #67 from kevinconan/main
修复API统计问题,并新增API过期,续期能力
|
2025-07-25 12:55:07 +08:00 |
|
KevinLiao
|
60585fea71
|
Merge branch 'feat_api_expired'
|
2025-07-25 10:52:54 +08:00 |
|
KevinLiao
|
e53724aa61
|
feat: 测试数据生成脚本
|
2025-07-25 10:47:09 +08:00 |
|
KevinLiao
|
e8d795713a
|
feat: API页面增加统计时间选择
|
2025-07-25 10:42:19 +08:00 |
|
github-actions[bot]
|
7582136eba
|
chore: sync VERSION file with release v1.1.18 [skip ci]
|
2025-07-25 09:53:28 +08:00 |
|
breaker
|
6a22163d83
|
feat: 支持通过URL参数切换管理界面标签页
- 添加URL参数解析功能,支持 ?tab=apiKeys 等参数直接跳转到指定标签页
- 切换标签页时自动更新URL,方便分享和书签
- 支持浏览器前进后退按钮,保持标签页状态同步
- 默认dashboard标签页不显示URL参数,保持简洁
|
2025-07-25 09:53:28 +08:00 |
|
KevinLiao
|
f614d54ab5
|
fix: APIKey列表费用及Token显示不准确的问题,目前显示总数
feat: 增加APIKey过期设置,以及到期续期的能力
|
2025-07-25 09:53:16 +08:00 |
|
github-actions[bot]
|
b34964b47e
|
chore: sync VERSION file with release v1.1.18 [skip ci]
|
2025-07-25 00:35:19 +00:00 |
|
Wesley Liddick
|
a6b1e5fb43
|
Merge pull request #64 from iBreaker/main
feat: 支持通过URL参数切换管理界面标签页
|
2025-07-25 08:35:09 +08:00 |
|
breaker
|
f149be0d0c
|
feat: 支持通过URL参数切换管理界面标签页
- 添加URL参数解析功能,支持 ?tab=apiKeys 等参数直接跳转到指定标签页
- 切换标签页时自动更新URL,方便分享和书签
- 支持浏览器前进后退按钮,保持标签页状态同步
- 默认dashboard标签页不显示URL参数,保持简洁
|
2025-07-25 01:25:33 +08:00 |
|
shaw
|
561f5ffc7f
|
update readme
|
2025-07-24 15:57:58 +08:00 |
|
github-actions[bot]
|
9f3af7d006
|
chore: sync VERSION file with release v1.1.17 [skip ci]
|
2025-07-24 07:51:35 +00:00 |
|
shaw
|
2e511fa6f8
|
refactor: 简化Docker部署,使用环境变量替代.env文件映射
- 移除 docker-compose.yml 中的 .env 文件映射
- 添加所有必要的环境变量到 docker-compose.yml
- 简化 docker-entrypoint.sh,直接使用环境变量
- 更新 README,说明通过环境变量配置的方式
- 删除不再需要的初始化脚本
- 解决了 sed -i 在某些 Docker 环境下的 'Resource busy' 错误
|
2025-07-24 15:51:10 +08:00 |
|
shaw
|
232c276c8c
|
docs: 加强 Docker 部署时 .env 文件创建的说明和提示
- 在 docker-compose.yml 顶部添加醒目的注释说明必须先创建 .env 文件
- 更新 README.md,在 Docker 部署章节开头突出强调创建 .env 的重要性
- 解释为什么必须先创建文件(避免 Docker 创建成目录)
- 改进 docker-compose-init.sh 脚本,增加错误检测和修复功能
- 提供清晰的步骤指引和故障排除方法
|
2025-07-24 15:51:10 +08:00 |
|