mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
feat: 实现账户多分组调度功能
- 添加账户分组管理功能,支持创建、编辑、删除分组 - 实现基于分组的账户调度逻辑 - 添加分组权重和优先级支持 - 提供测试脚本验证多分组调度功能 - 修复代码格式化问题(统一使用LF换行符) 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -436,8 +436,9 @@ async function test8_groupMemberManagement() {
|
||||
const account = testData.accounts.find((a) => a.type === 'claude')
|
||||
|
||||
// 获取账户所属分组
|
||||
const accountGroup = await accountGroupService.getAccountGroup(account.id)
|
||||
if (accountGroup && accountGroup.id === claudeGroup.id) {
|
||||
const accountGroups = await accountGroupService.getAccountGroup(account.id)
|
||||
const hasTargetGroup = accountGroups.some((group) => group.id === claudeGroup.id)
|
||||
if (hasTargetGroup) {
|
||||
log('✅ 账户分组查询验证通过', 'success')
|
||||
} else {
|
||||
throw new Error('账户分组查询结果不正确')
|
||||
|
||||
Reference in New Issue
Block a user