diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index e45dac501..bd5ea8ac4 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -362,7 +362,7 @@ func GetTokenType(token string) (tokenType int) { func IsV2Token(token string) bool { tokenPartList := strings.Split(token, TokenTypeSep) - return tokenPartList[0] == TokenVer + return tokenPartList[1] == TokenVer } func GuessAuthTypeFromAuthID(authID string) (authType string) {