mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
fix: 修复合并后的重复代码和闭包签名不匹配
- 删除 account_handler.go 中重复的 CheckMixedChannel 函数 - 修复 gateway_handler.go 闭包调用传参不匹配(上游已改为闭包捕获) - 恢复 docker-compose.yml 中缺失的 postgres_data volume 定义
This commit is contained in:
1 parent
496173da1f
commit
d552ad7673
3 files changed
+4
-46
No files matched your search
@@ -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