This commit is contained in:
richboo111
2022-08-10 15:12:50 +08:00
parent 68530da1db
commit a52658b56b
2 changed files with 4 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")"
sqlParams = append(sqlParams, typeList)
}
if authID != "" && authID2 != "" {
if authID != "" || authID2 != "" {
sql += "AND (t1.auth_id = ? OR t1.auth_id2 = ?)"
sqlParams = append(sqlParams, authID, authID2)
}