From 6719daaf05a243fa2baf326e89fbdf4e55000e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 19 Feb 2020 18:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E7=94=A8=E6=88=B7=E6=9C=89?= =?UTF-8?q?=E6=97=A0=E6=89=8B=E6=9C=BA=E5=8F=B7=E8=BF=94=E5=9B=9Etokentype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/auth2/auth2.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index b61df8e14..0f9a077c7 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -351,12 +351,12 @@ 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 { + if authInfo.Mobile == "" { + authInfo.TokenType = 2 + } return authInfo, nil } return nil, model.ErrTokenIsInvalid