From 017547f20b9a4e26e882c8901c0577149e397ff9 Mon Sep 17 00:00:00 2001 From: jiangyong Date: Sat, 13 Sep 2025 11:49:26 +0800 Subject: [PATCH] logdebug --- qyweixin/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qyweixin/app.go b/qyweixin/app.go index 2c51944..1ec9f5c 100644 --- a/qyweixin/app.go +++ b/qyweixin/app.go @@ -11,9 +11,9 @@ import ( "git.u8t.cn/open/gosdk/wechat/cache" "git.u8t.cn/open/gosdk/wechat/message" wutil "git.u8t.cn/open/gosdk/wechat/util" + "git.u8t.cn/open/goutil" "github.com/gin-gonic/gin" log "github.com/sirupsen/logrus" - "git.u8t.cn/open/goutil" "github.com/spf13/cast" "io" "io/ioutil" @@ -354,7 +354,7 @@ func (q *App) Callback(ctx *gin.Context) { _, resp, err := wutil.DecryptMsg(wechatConfig.AppID, ctx.Query("echostr"), wechatConfig.EncodingAESKey) if err != nil { - log.Errorf("DecryptMsg failed! appid[%s] aeskey[%s] error:%s ", wechatConfig.AppID, wechatConfig.EncodingAESKey, err.Error()) + log.Errorf("DecryptMsg failed! wechatConfig[%s] error:%s ", goutil.EncodeJSON(wechatConfig), err.Error()) return } ctx.Data(http.StatusOK, "Content-type: text/plain", resp)