From 83c92deda4be8af0953c3104873d30d3ff568194 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 7 Nov 2023 13:01:25 +0800 Subject: [PATCH] fix --- server/feishu-sync/internal/logic/webhooklogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/feishu-sync/internal/logic/webhooklogic.go b/server/feishu-sync/internal/logic/webhooklogic.go index 5f26c04c..2a4aa597 100644 --- a/server/feishu-sync/internal/logic/webhooklogic.go +++ b/server/feishu-sync/internal/logic/webhooklogic.go @@ -10,7 +10,7 @@ import ( "encoding/json" "errors" "fmt" - "io" + "io/ioutil" "net/http" "strings" @@ -53,7 +53,7 @@ type BaseWebhookMsgHeaderType struct { } func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) { - bodyBytes, err := io.ReadAll(r.Body) + bodyBytes, err := ioutil.ReadAll(r.Body) if err != nil { logx.Error("读取请求body失败", err) return