fix: 修复合并后的重复代码和闭包签名不匹配

- 删除 account_handler.go 中重复的 CheckMixedChannel 函数
- 修复 gateway_handler.go 闭包调用传参不匹配(上游已改为闭包捕获)
- 恢复 docker-compose.yml 中缺失的 postgres_data volume 定义
This commit is contained in:
erio
2026-02-25 19:24:56 +08:00
parent 496173da1f
commit d552ad7673
3 changed files with 4 additions and 46 deletions

View File

@@ -423,7 +423,7 @@ func (h *GatewayHandler) Messages(c *gin.Context) {
zap.Int64("account_id", account.ID),
).Error("gateway.record_usage_failed", zap.Error(err))
}
}(result, account, userAgent, clientIP, fs.ForceCacheBilling)
})
return
}
}
@@ -649,7 +649,7 @@ func (h *GatewayHandler) Messages(c *gin.Context) {
zap.Int64("account_id", account.ID),
).Error("gateway.record_usage_failed", zap.Error(err))
}
}(result, account, userAgent, clientIP, fs.ForceCacheBilling)
})
return
}
if !retryWithFallback {