From 07fcd4b7b7cf560d69cff81449ed8eda27b84e33 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 7 Nov 2023 10:19:06 +0800 Subject: [PATCH] fix --- server/feishu-sync/internal/logic/webhooklogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/feishu-sync/internal/logic/webhooklogic.go b/server/feishu-sync/internal/logic/webhooklogic.go index 8863f2fa..acb4bca2 100644 --- a/server/feishu-sync/internal/logic/webhooklogic.go +++ b/server/feishu-sync/internal/logic/webhooklogic.go @@ -48,6 +48,7 @@ func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) { logx.Error("读取请求body失败", err) return } + logx.Info("收到消息:", string(bodyBytes)) defer r.Body.Close() //如果只是验证http连接的消息 var webhookMsg WebhookMsg @@ -55,7 +56,6 @@ func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) { logx.Error("反序列化请求body失败", err) return } - logx.Info("收到消息:", webhookMsg) //验证连接(直接返回) if webhookMsg.Type == "url_verification" { challengeRsp := map[string]string{