diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index a4ee4ac0c..07288ae7d 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -273,12 +273,10 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string // if user != nil { // authBindEx.UserID = user.GetID() // } - if user2 := userProvider.GetUser(authBindEx.AuthID2, "auth_id2"); err != nil { + + if user2 := userProvider.GetUser(authBindEx.UserHint.Email, UserIDMobile); user2 != nil { user = user2 } - //if user2 := userProvider.GetUser(authBindEx.UserHint.Email, UserIDMobile); user2 != nil { - // user = user2 - //} globals.SugarLogger.Debug("user检测1=============", user) } else if authBindEx.UserID != "" { user = userProvider.GetUser(authBindEx.UserID, UserIDID)