From 9e65eded6812106075b6f2112fb250a898a70338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 20 Nov 2020 15:52:35 +0800 Subject: [PATCH] test --- business/model/dao/dao_auth2.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/business/model/dao/dao_auth2.go b/business/model/dao/dao_auth2.go index ca9432427..7fbb2adad 100644 --- a/business/model/dao/dao_auth2.go +++ b/business/model/dao/dao_auth2.go @@ -2,7 +2,6 @@ package dao import ( "errors" - "fmt" "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/model" @@ -29,6 +28,7 @@ func GetAuthBind(db *DaoDB, bindType int, authType, authID string) (authBind *mo } func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []string, authID, authID2, typeID string) (authList []*model.AuthBind, err error) { + var auth []*model.AuthBind sql := ` SELECT * FROM auth_bind t1 @@ -62,7 +62,6 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri sqlParams = append(sqlParams, typeID) } sql += " ORDER BY t1.type" - err = GetRows(db, &authList, sql, sqlParams...) - fmt.Println("tetetet", utils.Format4Output(authList, false)) - return authList, err + err = GetRows(db, &auth, sql, sqlParams...) + return auth, err }