From 2faf7424103ecaf533ebadfa9ec83bd52439b96e Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Thu, 18 Jul 2024 21:34:48 +0800 Subject: [PATCH] log info --- qyweixin/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qyweixin/app.go b/qyweixin/app.go index e28c217..6ddaec0 100644 --- a/qyweixin/app.go +++ b/qyweixin/app.go @@ -348,13 +348,13 @@ func (q *App) Callback(ctx *gin.Context) { sign := wutil.Signature(ctx.Query("timestamp"), ctx.Query("echostr"), ctx.Query("nonce"), wechatConfig.Token) if sign != ctx.Query("msg_signature") { - log.Errorf("sign error forcheck config") + log.Errorf("sign error forcheck config! token[%s]", wechatConfig.Token) return } _, resp, err := wutil.DecryptMsg(wechatConfig.AppID, ctx.Query("echostr"), wechatConfig.EncodingAESKey) if err != nil { - log.Errorf("DecryptMsg failed! error:%s", err.Error()) + log.Errorf("DecryptMsg failed! appid[%s] aeskey[%s] error:%s ", wechatConfig.AppID, wechatConfig.EncodingAESKey, err.Error()) return } ctx.Data(http.StatusOK, "Content-type: text/plain", resp)