From e5fbfd1a934c8275a113eac2af4e2c14494be647 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 6 Nov 2023 17:30:52 +0800 Subject: [PATCH] fix --- server/feishu-sync/internal/handler/webhookhandler.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server/feishu-sync/internal/handler/webhookhandler.go b/server/feishu-sync/internal/handler/webhookhandler.go index 137a5d28..759d3ff3 100644 --- a/server/feishu-sync/internal/handler/webhookhandler.go +++ b/server/feishu-sync/internal/handler/webhookhandler.go @@ -17,7 +17,6 @@ import ( func WebhookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { b, _ := io.ReadAll(r.Body) - defer r.Body.Close() log.Println("收到body信息:", string(b)) var req types.WebhookReq userinfo, err := basic.RequestParse(w, r, svcCtx, &req)