diff --git a/business/model/dao/dao_auth2.go b/business/model/dao/dao_auth2.go index a944f63b0..51a9e8d68 100644 --- a/business/model/dao/dao_auth2.go +++ b/business/model/dao/dao_auth2.go @@ -2,6 +2,7 @@ package dao import ( "errors" + "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/model" @@ -44,10 +45,12 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri sql += " AND t1.bind_type = ?" sqlParams = append(sqlParams, bindType) } + globals.SugarLogger.Debug("输出一下传入的GenQuestionMarks(len(typeList))", GenQuestionMarks(len(typeList))) if len(typeList) > 0 { sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")" sqlParams = append(sqlParams, typeList) } + globals.SugarLogger.Debug("输出一下传入的authID,authID2", authID, authID2, userID) if authID != "" || authID2 != "" || userID != "" { sql += "AND (t1.auth_id = ? OR t1.auth_id2 = ? OR t1.user_id = ? )" sqlParams = append(sqlParams, authID, authID2, userID) @@ -60,6 +63,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri // sql += " AND t1.auth_id2 = ?" // sqlParams = append(sqlParams, authID2) //} + globals.SugarLogger.Debug("输出一下传入的GenQuestionMarks(len(typeIDs))", GenQuestionMarks(len(typeIDs))) if len(typeIDs) > 0 { sql += " AND t1.type_id IN (" + GenQuestionMarks(len(typeIDs)) + ")" sqlParams = append(sqlParams, typeIDs)