修正了 property 直接取值的问题
This commit is contained in:
@@ -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 属性"""
|
||||
|
||||
Reference in New Issue
Block a user