From c670855e1118f8ff59da427fda489693583e2e76 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:11:50 +0800 Subject: [PATCH] aa --- business/auth2/auth2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index c1d551009..33a926181 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -282,8 +282,8 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string if authType == "weixinmini" || authType == "weixinapp" { appID := strings.Split(authSecret, ",")[0] if appID == "wx08a5c2a8581414ff" || appID == "wx2d6949f724b2541d" || appID == "wx18111a41fd17f24f" || appID == "wx4b5930c13f8b1170" { //菜市或者果园 - if user != nil { - binds, err := dao.GetUserBindAuthInfo(dao.GetDB(), user.GetID(), 0, nil, "", "", []string{"wx2bb99eb5d2c9b82c", "wx4b5930c13f8b1170"}) + if authInfo.AuthBindInfo.UserID != "" { + binds, err := dao.GetUserBindAuthInfo(dao.GetDB(), authInfo.AuthBindInfo.UserID, 0, nil, "", "", []string{"wx2bb99eb5d2c9b82c", "wx4b5930c13f8b1170"}) if err != nil { return authInfo, err }