修正了 property 直接取值的问题

This commit is contained in:
2026-06-18 02:49:04 +08:00
parent 7ce545fedb
commit f80ce51859
5 changed files with 27 additions and 22 deletions

View File

@@ -320,6 +320,11 @@ class User(QModel):
def is_authenticated(self):
return self.IsAuthenticated
@property
def id(self):
"""兼容旧代码的 id 属性,返回 UserUUID"""
return self.UserUUID
@property
def yonghuid(self):
"""兼容旧代码的 yonghuid 属性"""