根据用户有无手机号返回tokentype退回

This commit is contained in:
苏尹岚
2020-02-19 18:34:29 +08:00
parent 6719daaf05
commit a15102c12b

View File

@@ -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