fix: close p0 auth and release gate gaps

This commit is contained in:
Your Name
2026-04-11 09:25:31 +08:00
parent b7b46dc827
commit 4adeee2e06
28 changed files with 3791 additions and 276 deletions

View File

@@ -278,6 +278,11 @@ func getTenantID(ctx context.Context) int64 {
return 0
}
// GetTenantID 公开函数从context获取租户ID
func GetTenantID(ctx context.Context) int64 {
return getTenantID(ctx)
}
func getOperatorID(ctx context.Context) int64 {
if v := ctx.Value(operatorIDKey); v != nil {
if id, ok := v.(int64); ok {