Merge pull request #733 from DaydreamCoding/fix/group-isolation

fix(gateway): 分组隔离 — 禁止未分组账号被跨组调度
This commit is contained in:
Wesley Liddick
2026-03-03 15:10:30 +08:00
committed by GitHub
14 changed files with 475 additions and 10 deletions

View File

@@ -1343,7 +1343,7 @@ func (s *OpenAIGatewayService) listSchedulableAccounts(ctx context.Context, grou
} else if groupID != nil {
accounts, err = s.accountRepo.ListSchedulableByGroupIDAndPlatform(ctx, *groupID, PlatformOpenAI)
} else {
accounts, err = s.accountRepo.ListSchedulableByPlatform(ctx, PlatformOpenAI)
accounts, err = s.accountRepo.ListSchedulableUngroupedByPlatform(ctx, PlatformOpenAI)
}
if err != nil {
return nil, fmt.Errorf("query accounts failed: %w", err)