This commit is contained in:
richboo111
2023-07-03 17:52:39 +08:00
parent b0e85e5a87
commit 57ed7d8e4a
2 changed files with 4 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
globals.SugarLogger.Debugf("dao.IsNoRowsError authBindList=%s", utils.Format4Output(authBindList, false))
globals.SugarLogger.Debugf("dao.IsNoRowsError openID=%s, unionID=%s", openID, unionID)
if err != nil {
globals.SugarLogger.Debugf("dao.IsNoRowsError err=%v", err)
return nil, err
}
if len(authBindList) > 0 { // 通过unionID找到至少一个认证方式

View File

@@ -2,8 +2,10 @@ package dao
import (
"errors"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-print/globals"
)
func GetAuthBind(db *DaoDB, bindType int, authType, authID string) (authBind *model.AuthBind, err error) {
@@ -60,6 +62,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
sqlParams = append(sqlParams, typeIDs)
}
sql += " ORDER BY t1.type"
globals.SugarLogger.Debugf("GetUserBindAuthInfo sql=%s,sqlParams=%s", sql, utils.Format4Output(sqlParams, false))
err = GetRows(db, &authList, sql, sqlParams...)
return authList, err
}