- user GetUserTag in jxcontext.Context.GetUserName
This commit is contained in:
@@ -76,3 +76,16 @@ func (a *AuthInfo) GetAuthID() string {
|
||||
func (a *AuthInfo) GetAuthType() string {
|
||||
return a.AuthBindInfo.Type
|
||||
}
|
||||
|
||||
func (a *AuthInfo) GetUserTag() string {
|
||||
userTag := a.UserID2
|
||||
if userTag == "" {
|
||||
if a.AuthBindInfo.UserHint != nil {
|
||||
userTag = a.AuthBindInfo.UserHint.Mobile
|
||||
}
|
||||
if userTag == "" {
|
||||
userTag = a.AuthBindInfo.AuthID
|
||||
}
|
||||
}
|
||||
return userTag
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user