diff --git a/business/auth2/authprovider/defauther.go b/business/auth2/authprovider/defauther.go index 6af89984d..18e80688e 100644 --- a/business/auth2/authprovider/defauther.go +++ b/business/auth2/authprovider/defauther.go @@ -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 }