This commit is contained in:
苏尹岚
2020-11-20 15:52:35 +08:00
parent cbff4eb618
commit 9e65eded68

View File

@@ -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
}