This commit is contained in:
richboo111
2022-08-10 15:46:20 +08:00
parent ad22eebee8
commit ce7a720192

View File

@@ -46,10 +46,10 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
sqlParams = append(sqlParams, bindType) sqlParams = append(sqlParams, bindType)
} }
globals.SugarLogger.Debug("输出一下传入的GenQuestionMarks(len(typeList))", GenQuestionMarks(len(typeList))) globals.SugarLogger.Debug("输出一下传入的GenQuestionMarks(len(typeList))", GenQuestionMarks(len(typeList)))
if len(typeList) > 0 { //if len(typeList) > 0 {
sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")" // sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")"
sqlParams = append(sqlParams, typeList) // sqlParams = append(sqlParams, typeList)
} //}
globals.SugarLogger.Debug("输出一下传入的authIDauthID2", authID, authID2, userID) globals.SugarLogger.Debug("输出一下传入的authIDauthID2", authID, authID2, userID)
if 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 = ? )"