dd
This commit is contained in:
@@ -54,7 +54,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
|||||||
//}
|
//}
|
||||||
globals.SugarLogger.Debug("输出一下传入的authID,authID2", authID, authID2, userID)
|
globals.SugarLogger.Debug("输出一下传入的authID,authID2", 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 = ? )"
|
||||||
sqlParams = append(sqlParams, authID, authID2, userID)
|
sqlParams = append(sqlParams, authID, authID2, userID)
|
||||||
}
|
}
|
||||||
//if authID != "" {
|
//if authID != "" {
|
||||||
@@ -74,5 +74,6 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
|||||||
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)
|
||||||
return authList, err
|
return authList, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user