From 9919f6607277174acce25b9df782dd10f36a5f56 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:20:51 +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 | 3 +++ 1 file changed, 3 insertions(+) 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 {