This commit is contained in:
richboo111
2023-07-04 09:16:52 +08:00
parent 6e93767443
commit a916ada4e1

View File

@@ -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
}