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