From e74acf9ebcc32e6785497bc7c39d5ad3dcea551e Mon Sep 17 00:00:00 2001 From: richboo111 Date: Tue, 4 Jul 2023 09:48:30 +0800 Subject: [PATCH] 1 --- business/auth2/auth2.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index 401a05efd..cdf20f13c 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -9,6 +9,8 @@ import ( "strings" "time" + "git.rosy.net.cn/jx-callback/globals" + "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/business/model/dao" @@ -309,6 +311,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string if appID == model.JXC4ClientAppID && authInfo.AuthBindInfo.UserID != "" { binds, err := dao.GetUserBindAuthInfo(dao.GetDB(), authInfo.AuthBindInfo.UserID, 0, nil, "", "", []string{model.JXC4ClientAppID}) if err != nil { + globals.SugarLogger.Debugf("AuthTypeWXApp authInfo=%s,err=%v", utils.Format4Output(authInfo, false), err) return authInfo, err } if len(binds) == 0 { @@ -324,6 +327,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string } else { err = ErrIllegalAuthType } + globals.SugarLogger.Debugf("LoginInternal authInfo=%s", utils.Format4Output(authInfo, false)) return authInfo, err }