dd
This commit is contained in:
@@ -38,10 +38,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)
|
||||||
//}
|
}
|
||||||
globals.SugarLogger.Debug("输出一下传入的bindType", bindType)
|
globals.SugarLogger.Debug("输出一下传入的bindType", bindType)
|
||||||
if bindType != model.AuthBindTypeAll {
|
if bindType != model.AuthBindTypeAll {
|
||||||
sql += " AND t1.bind_type = ?"
|
sql += " AND t1.bind_type = ?"
|
||||||
@@ -52,10 +52,10 @@ 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)
|
||||||
//}
|
//}
|
||||||
globals.SugarLogger.Debug("输出一下传入的authID,authID2", authID, authID2, userID)
|
globals.SugarLogger.Debug("输出一下传入的authID,authID2", authID, authID2)
|
||||||
if authID != "" || authID2 != "" || userID != "" {
|
if authID != "" || authID2 != "" {
|
||||||
sql += " AND ( t1.auth_id = ? OR t1.auth_id2 = ? OR t1.user_id = ? )"
|
sql += " AND ( t1.auth_id = ? OR t1.auth_id2 = ? )"
|
||||||
sqlParams = append(sqlParams, authID, authID2, userID)
|
sqlParams = append(sqlParams, authID, authID2)
|
||||||
}
|
}
|
||||||
//if authID != "" {
|
//if authID != "" {
|
||||||
// sql += " AND t1.auth_id = ?"
|
// sql += " AND t1.auth_id = ?"
|
||||||
@@ -71,7 +71,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
|||||||
sql += " AND t1.type_id IN (" + GenQuestionMarks(len(typeIDs)) + ")"
|
sql += " AND t1.type_id IN (" + GenQuestionMarks(len(typeIDs)) + ")"
|
||||||
sqlParams = append(sqlParams, typeIDs)
|
sqlParams = append(sqlParams, typeIDs)
|
||||||
}
|
}
|
||||||
//sql += " ORDER BY t1.type"
|
sql += " ORDER BY t1.type"
|
||||||
globals.SugarLogger.Debug("输出一下sql", sql)
|
globals.SugarLogger.Debug("输出一下sql", sql)
|
||||||
err = GetRows(db, &authList, sql, sqlParams)
|
err = GetRows(db, &authList, sql, sqlParams)
|
||||||
globals.SugarLogger.Debug("authList==================", authList)
|
globals.SugarLogger.Debug("authList==================", authList)
|
||||||
|
|||||||
Reference in New Issue
Block a user