This commit is contained in:
richboo111
2022-08-10 16:51:21 +08:00
parent 1fbc1c7107
commit 4bfc4b8e75

View File

@@ -54,7 +54,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
//}
globals.SugarLogger.Debug("输出一下传入的authIDauthID2", authID, authID2, userID)
if authID != "" || authID2 != "" || userID != "" {
sql += " AND (t1.auth_id = ? OR t1.auth_id2 = ? OR t1.user_id = ? )"
sql += " AND ( t1.auth_id = ? OR t1.auth_id2 = ? OR t1.user_id = ? )"
sqlParams = append(sqlParams, authID, authID2, userID)
}
//if authID != "" {
@@ -74,5 +74,6 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
sql += " ORDER BY t1.type"
globals.SugarLogger.Debug("输出一下sql", sql)
err = GetRows(db, &authList, sql, sqlParams...)
globals.SugarLogger.Debug("authList==================", authList)
return authList, err
}