mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-04-15 04:14:46 +08:00
fix: 修复合并后的重复代码和闭包签名不匹配
- 删除 account_handler.go 中重复的 CheckMixedChannel 函数 - 修复 gateway_handler.go 闭包调用传参不匹配(上游已改为闭包捕获) - 恢复 docker-compose.yml 中缺失的 postgres_data volume 定义
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user