From f062cb371ca6459b4bf5aa45c30c6d3c39ca21a8 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, 9 Apr 2021 11:20:24 +0800 Subject: [PATCH] aa --- business/auth2/auth2.go | 5 ----- business/model/dao/dao_auth2.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index f92e91adb..33a926181 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/base64" "errors" - "fmt" "regexp" "strings" "time" @@ -279,16 +278,12 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string if user != nil && user.GetID() != "" { userProvider.UpdateLastLogin(user.GetID(), authType, ctx.GetRealRemoteIP()) } - fmt.Println("11111111111111111", authType) //如果是小程序 if authType == "weixinmini" || authType == "weixinapp" { appID := strings.Split(authSecret, ",")[0] - fmt.Println("22222222222222222222222222", appID) if appID == "wx08a5c2a8581414ff" || appID == "wx2d6949f724b2541d" || appID == "wx18111a41fd17f24f" || appID == "wx4b5930c13f8b1170" { //菜市或者果园 - fmt.Println("333333333333333333333333333", authInfo.AuthBindInfo.UserID) if authInfo.AuthBindInfo.UserID != "" { binds, err := dao.GetUserBindAuthInfo(dao.GetDB(), authInfo.AuthBindInfo.UserID, 0, nil, "", "", []string{"wx2bb99eb5d2c9b82c", "wx4b5930c13f8b1170"}) - fmt.Println("444444444444444444444444", utils.Format4Output(binds, true)) if err != nil { return authInfo, err } diff --git a/business/model/dao/dao_auth2.go b/business/model/dao/dao_auth2.go index e45d0010b..10181a85f 100644 --- a/business/model/dao/dao_auth2.go +++ b/business/model/dao/dao_auth2.go @@ -57,7 +57,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri sqlParams = append(sqlParams, authID2) } if len(typeIDs) > 0 { - sql += " AND t1.type IN (" + GenQuestionMarks(len(typeIDs)) + ")" + sql += " AND t1.type_id IN (" + GenQuestionMarks(len(typeIDs)) + ")" sqlParams = append(sqlParams, typeIDs) } sql += " ORDER BY t1.type"