dd
This commit is contained in:
@@ -36,10 +36,10 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
|||||||
utils.DefaultTimeValue,
|
utils.DefaultTimeValue,
|
||||||
model.UserStatusNormal,
|
model.UserStatusNormal,
|
||||||
}
|
}
|
||||||
if userID != "" {
|
//if userID != "" {
|
||||||
sql += " AND t1.user_id = ?"
|
// sql += " AND t1.user_id = ?"
|
||||||
sqlParams = append(sqlParams, userID)
|
// sqlParams = append(sqlParams, userID)
|
||||||
}
|
//}
|
||||||
if bindType != model.AuthBindTypeAll {
|
if bindType != model.AuthBindTypeAll {
|
||||||
sql += " AND t1.bind_type = ?"
|
sql += " AND t1.bind_type = ?"
|
||||||
sqlParams = append(sqlParams, bindType)
|
sqlParams = append(sqlParams, bindType)
|
||||||
@@ -48,9 +48,9 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
|||||||
sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")"
|
sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")"
|
||||||
sqlParams = append(sqlParams, typeList)
|
sqlParams = append(sqlParams, typeList)
|
||||||
}
|
}
|
||||||
if authID != "" || authID2 != "" {
|
if authID != "" || authID2 != "" || userID != "" {
|
||||||
sql += "AND (t1.auth_id = ? OR t1.auth_id2 = ?)"
|
sql += "AND (t1.auth_id = ? OR t1.auth_id2 = ? OR t1.user_id = ? )"
|
||||||
sqlParams = append(sqlParams, authID, authID2)
|
sqlParams = append(sqlParams, authID, authID2, userID)
|
||||||
}
|
}
|
||||||
//if authID != "" {
|
//if authID != "" {
|
||||||
// sql += " AND t1.auth_id = ?"
|
// sql += " AND t1.auth_id = ?"
|
||||||
|
|||||||
Reference in New Issue
Block a user