From 4503993016f559757fe612583f36d3590bf48f22 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 11 Aug 2022 17:34:41 +0800 Subject: [PATCH] dd --- business/auth2/auth2.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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)