Merge pull request #288 from sczheng189/feat/multi-group-scheduling

feat: 实现账户多分组调度功能
This commit is contained in:
Wesley Liddick
2025-08-26 08:58:33 +08:00
committed by GitHub
7 changed files with 567 additions and 104 deletions

View File

@@ -609,6 +609,13 @@ class ClaudeAccountService {
// 🗑️ 删除Claude账户
async deleteAccount(accountId) {
try {
// 首先从所有分组中移除此账户
const accountGroupService = require('./accountGroupService')
const groups = await accountGroupService.getAccountGroup(accountId)
for (const group of groups) {
await accountGroupService.removeAccountFromGroup(accountId, group.id)
}
const result = await redis.deleteClaudeAccount(accountId)
if (result === 0) {