dd
This commit is contained in:
@@ -82,6 +82,8 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
|
||||
} else if dao.IsNoRowsError(err) { // 直接找不到,尝试unionID
|
||||
if unionID != "" || openID != "" { // 且有unionID
|
||||
var authBindList []*model.AuthBind
|
||||
globals.SugarLogger.Debug("输出一下", unionAuthTypeList)
|
||||
globals.SugarLogger.Debug("=====================输出一下openID,unionID", openID, unionID)
|
||||
if authBindList, err = dao.GetUserBindAuthInfo(db, "", model.AuthBindTypeAuth, unionAuthTypeList, openID, unionID, nil); err == nil && len(authBindList) > 0 { // 通过unionID找到至少一个认证方式
|
||||
authBind = authBindList[0]
|
||||
authBind.Type = curAuthType
|
||||
@@ -98,7 +100,7 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
|
||||
} else if dao.IsNoRowsError(err) {
|
||||
err = nil
|
||||
}
|
||||
globals.SugarLogger.Debug("输出一下authBindList", authBindList)
|
||||
globals.SugarLogger.Debug("输出一下authBindList", authBindList) //空的
|
||||
} else {
|
||||
err = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user