From a15102c12b08c028ca166b2bbd57360fdea2dd71 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:34:29 +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?= =?UTF-8?q?=E9=80=80=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/auth2/auth2.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index 0f9a077c7..bcf932354 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -354,9 +354,6 @@ func GetTokenInfo(token string) (authInfo *AuthInfo, err error) { 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