From 1a9381a9a89c92c6d83c52c6dab200c04706042e Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 6 Nov 2023 14:36:33 +0800 Subject: [PATCH] fix --- server/feishu-sync/internal/handler/ticketwebhookhandler.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/feishu-sync/internal/handler/ticketwebhookhandler.go b/server/feishu-sync/internal/handler/ticketwebhookhandler.go index 5780ca2a..1a2fe030 100644 --- a/server/feishu-sync/internal/handler/ticketwebhookhandler.go +++ b/server/feishu-sync/internal/handler/ticketwebhookhandler.go @@ -1,6 +1,8 @@ package handler import ( + "fmt" + "io" "net/http" "reflect" @@ -13,7 +15,9 @@ import ( func TicketWebhookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { - + defer r.Body.Close() + d, _ := io.ReadAll(r.Body) + fmt.Println(string(d)) var req types.TicketWebhookReq userinfo, err := basic.RequestParse(w, r, svcCtx, &req) if err != nil {