修复个人中心问题

This commit is contained in:
2026-09-29 18:25:09 +08:00
parent 0dc5c2f075
commit ca4220f92c
44 changed files with 1793 additions and 310 deletions
+3 -1
View File
@@ -103,9 +103,11 @@ func (c *AppAuthController) GetCurrentUser() {
return
}
// 令牌 user_id 是认证中心 identity_id,需换算成本租户的老 uid 再查老表
uid := services.ResolveTenantUID(uint64(claims.TenantId), uint64(claims.UserID))
var tenantUser models.SystemTenantUser
err = models.Orm.QueryTable(new(models.SystemTenantUser)).
Filter("uid", claims.UserID).
Filter("uid", uid).
Filter("tid", claims.TenantId).
One(&tenantUser)
if err != nil {