diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index bb7f9cdb6..e449a43ca 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -275,7 +275,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string // if user != nil { // authBindEx.UserID = user.GetID() // } - if user2 := userProvider.GetUser(authBindEx.UserHint.Mobile, UserIDMobile); user2 != nil { + if user2 := userProvider.GetUser(authBindEx.UserHint.Email, UserIDMobile); user2 != nil { user = user2 } globals.SugarLogger.Debug("user检测1=============", user)