diff --git a/business/auth2/authprovider/defauther.go b/business/auth2/authprovider/defauther.go index b58729897..620ef8c91 100644 --- a/business/auth2/authprovider/defauther.go +++ b/business/auth2/authprovider/defauther.go @@ -120,7 +120,10 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu } } globals.SugarLogger.Debugf("authBindList err=%v", err) - if err == nil && authBindEx == nil { //如果没有报错,且没有找到一个认证方式,创建无用户(UserID为空)的认证方式 + globals.SugarLogger.Debugf("authBindList authBindEx=%v", err) + if err == nil && authBindEx == nil { + //如果没有报错,且没有找到一个认证方式,创建无用户(UserID为空)的认证方式 + globals.SugarLogger.Debugf("进入添加无用户认证方式") authBindEx = &auth2.AuthBindEx{ AuthBind: model.AuthBind{ Type: curAuthType, @@ -132,6 +135,8 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu if authDetail != nil { authBindEx.DetailData = string(utils.MustMarshal(authDetail)) } + globals.SugarLogger.Debugf("authBindEx=%s", utils.Format4Output(authBindEx, false)) + } return authBindEx, err }