From 3b0c5e6895231969cba6cd03ea1ff93311cdd0ae Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 11 Aug 2022 15:15:05 +0800 Subject: [PATCH] dd --- business/auth2/auth2.go | 2 +- business/auth2/authprovider/defauther.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index 04c08eaa1..c0962be81 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -83,7 +83,7 @@ type IAuther interface { SendVerifyCode(authID string) (verifyCode string, err error) // 负责验证secret,并找到相应的用户返回(password,email,mobile类型的不负责用户查找)如果找不到用户UserID为空 VerifySecret(authID, authSecret string) (authBindEx *AuthBindEx, err error) - pay(authBindEx *AuthBindEx, userName string) (err error) + AddAuthBind(authBindEx *AuthBindEx, userName string) (err error) UnbindAuth(userID, authType, authTypeID, userName string) (err error) Logout(authInfo *AuthInfo) (err error) GetUserType() (userType int8) diff --git a/business/auth2/authprovider/defauther.go b/business/auth2/authprovider/defauther.go index bd2bdb608..d4836f048 100644 --- a/business/auth2/authprovider/defauther.go +++ b/business/auth2/authprovider/defauther.go @@ -99,7 +99,6 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu } a.UnbindAuth(authBind.UserID, curAuthType, curAuthTypeID, model.AdminName) err = a.AddAuthBind(authBindEx, model.AdminName) // 自动绑定 - globals.SugarLogger.Debug("authBindEx AddAuthBind err============", authBindEx, err) } else if dao.IsNoRowsError(err) { err = nil }