From 2ffbc14b4dfeec0e7f2838690651a1c84dc12771 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, 23 Sep 2020 14:49:18 +0800 Subject: [PATCH] =?UTF-8?q?test=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/auth2/auth2.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index 9dec02055..f653406be 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/base64" "errors" - "fmt" "regexp" "strings" "time" @@ -244,7 +243,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string realAuthID = user.GetID() } if authBindEx, err = handler.VerifySecret(realAuthID, authSecret); err == nil { - // globals.SugarLogger.Debugf("auth2 Login authBindEx:%s", utils.Format4Output(authBindEx, false)) + globals.SugarLogger.Debugf("testttttttttttttttttttttttttttttttttttt", utils.Format4Output(authBindEx, false)) if authBindEx == nil { // mobile, email会返回nil(表示不会新建AuthBind实体) user = userProvider.GetUser(authID, authIDType) authBindEx = &AuthBindEx{ @@ -271,7 +270,6 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string user = userProvider.GetUser(authBindEx.UserID, UserIDID) } } - fmt.Println("test2222222222222222222222222222222", utils.Format4Output(user, false)) authInfo = createAuthInfo(user, authBindEx) if user != nil && user.GetID() != "" { userProvider.UpdateLastLogin(user.GetID(), authType, ctx.GetRealRemoteIP()) @@ -401,7 +399,6 @@ func createToken(user IUser, authBindInfo *AuthBindEx) (token string, tokenType userID := TokenUserEmpty userName := authBindInfo.AuthID tokenType = TokenTypeOnlyAuth - fmt.Println("test111111111111111111111", utils.Format4Output(user, false)) if user != nil { userID = user.GetID() userName = "[" + user.GetID2() + "]"