diff --git a/business/auth2/authprovider/defauther.go b/business/auth2/authprovider/defauther.go index 0cfab4961..b58729897 100644 --- a/business/auth2/authprovider/defauther.go +++ b/business/auth2/authprovider/defauther.go @@ -111,7 +111,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.Debugf("authBindList err=%v", err) } else if dao.IsNoRowsError(err) { globals.SugarLogger.Debugf("dao.IsNoRowsError(err)=%s,err=%v", dao.IsNoRowsError(err), err) err = nil @@ -120,6 +119,7 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu err = nil } } + globals.SugarLogger.Debugf("authBindList err=%v", err) if err == nil && authBindEx == nil { //如果没有报错,且没有找到一个认证方式,创建无用户(UserID为空)的认证方式 authBindEx = &auth2.AuthBindEx{ AuthBind: model.AuthBind{