diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index bcf932354..b61df8e14 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -351,6 +351,9 @@ func RemoveUserInfo(token string) { func GetTokenInfo(token string) (authInfo *AuthInfo, err error) { if authInfo = getFixedTokenName(token); authInfo != nil { + if authInfo.Mobile == "" { + authInfo.TokenType = 2 + } return authInfo, nil } if err = api.Cacher.GetAs(token, &authInfo); err == nil {