fix: align portal queries and super auth

This commit is contained in:
2026-01-25 15:11:08 +08:00
parent bb374f5c52
commit ea342bf8a3
14 changed files with 340 additions and 23 deletions

View File

@@ -78,7 +78,7 @@ func (t *Tenant) Get(ctx fiber.Ctx, user *models.User, id int64) (*dto.TenantPro
if tenantID > 0 && id != tenantID {
return nil, errorx.ErrForbidden.WithMsg("租户不匹配")
}
return services.Tenant.GetPublicProfile(ctx, tenantID, uid)
return services.Tenant.GetPublicProfile(ctx, id, uid)
}
// Follow a tenant