From 5c33808b836948faf6567b9bb65fcb027cadc519 Mon Sep 17 00:00:00 2001 From: jiangyong Date: Sat, 13 Sep 2025 11:58:58 +0800 Subject: [PATCH] log --- qyweixin/app.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qyweixin/app.go b/qyweixin/app.go index 1ec9f5c..86bf229 100644 --- a/qyweixin/app.go +++ b/qyweixin/app.go @@ -68,12 +68,12 @@ type BaseResponse struct { } type AppConfig struct { - Corpid string - Secret string - Agent string - Token string - AesKey string - Replay func(message.MixMessage) *message.Reply + Corpid string `json:"corpid"` + Secret string `json:"secret"` + Agent string `json:"agent"` + Token string `json:"token"` + AesKey string `json:"aes_key"` + Replay func(message.MixMessage) *message.Reply `json:"-"` } type App struct { @@ -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! wechatConfig[%s] error:%s ", goutil.EncodeJSON(wechatConfig), err.Error()) + log.Errorf("DecryptMsg failed! wechatConfig[%s] error:%s ", goutil.EncodeJSON(q.config), err.Error()) return } ctx.Data(http.StatusOK, "Content-type: text/plain", resp)