refactor(service): 将 AccountUsageService 的包级缓存改为依赖注入

This commit is contained in:
song
2026-01-03 13:10:43 +08:00
parent 0452f32003
commit d2aaf0b491
4 changed files with 31 additions and 21 deletions

View File

@@ -322,9 +322,6 @@ func (s *AntigravityGatewayService) Forward(ctx context.Context, c *gin.Context,
originalModel := claudeReq.Model
mappedModel := s.getMappedModel(account, claudeReq.Model)
if mappedModel != claudeReq.Model {
log.Printf("Antigravity model mapping: %s -> %s (account: %s)", claudeReq.Model, mappedModel, account.Name)
}
// 获取 access_token
if s.tokenProvider == nil {